基本广度搜索 把队列搞明白 基本全能做 来看 摘要:解题思路:讲一遍可以走的全部走完 理解后特别简单 注意事项:参考代码:#includeusing namespace std;int dx[]={1,1,-1,-1,2,2,-2,-2};int dy…… 题解列表 2023年02月04日 0 点赞 0 评论 417 浏览 评分:9.9
连续出现的字符 摘要:解题思路:利用排序法的思路,进行遍历比较注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int k;char str[1000]; s…… 题解列表 2023年02月04日 0 点赞 0 评论 550 浏览 评分:9.9
选择排序法 摘要:解题思路:一共输入十个数,用数组进行保存,再进行选择排序;注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,j,t; for(i=0;i…… 题解列表 2023年02月04日 0 点赞 0 评论 410 浏览 评分:9.9
暴力算法c语言 摘要:普通的for循环 #include int isPrime(int n) { int i; int t=sqrt(n); …… 题解列表 2023年02月05日 0 点赞 0 评论 355 浏览 评分:9.9
2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:a = int(input())n = list(map(int,input().split()))print(max(n) - min(n))…… 题解列表 2023年02月05日 0 点赞 1 评论 498 浏览 评分:9.9
C语言-计负均正 摘要:解题思路:很常规的题目,输入数组,用for循环,然后if判断,小于0就计数+1,大于0也计数+1,排除0的可能,同时累加和。注意事项:注意输入,我当时怎么都不对,对照代码没问题的,发现是自己写错了输入…… 题解列表 2023年02月05日 0 点赞 0 评论 383 浏览 评分:9.9
既然答案较少,那在下就献丑了(c语言)简单易懂,非递归 摘要:参考代码:#include<stdio.h> int funY(int a,int b){ //最大公约数 int min = (a < b ? a : b); while…… 题解列表 2023年02月05日 0 点赞 0 评论 457 浏览 评分:9.9
1842: 蓝桥杯2017年第八届真题-对局匹配 c++ 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cmath> #include<vector> #define F…… 题解列表 2023年02月05日 0 点赞 0 评论 489 浏览 评分:9.9
2790: 分段函数(c++) 摘要:解题思路:注意事项:保留3位浮点小数参考代码:#include<bits/stdc++.h>using namespace std;int main(){ float x; cin>>x;…… 题解列表 2023年02月06日 0 点赞 0 评论 478 浏览 评分:9.9
优质题解 1259: 送分题素数 摘要:#####**素数的概念:** 素数又称质数(prime number),有无限个。 一个大于1的自然数,除了1和它本身外, #####**不能被其他自然数(包括其它质数(素数))整除** …… 题解列表 2023年02月06日 0 点赞 2 评论 913 浏览 评分:9.9