题解列表

筛选

编写题解 1058: 二级C语言-求偶数和

摘要:解题思路:优化步骤,在输入的时候同时判断是否为偶数注意事项:注意数组定义的时间和位置参考代码:#include <stdio.h>int main(){ int k,x = 0; scanf("%d"……

就是nb,不会速来看

摘要:解题思路:注意事项:参考代码:n = int(input())sum_1 = 0t = 0for i in range(10000,999999):    i = str(i)    p = i   ……

1951:求平方和

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d%d",&a,&b);c=a*a+b*b;printf("%d",c);re……

全球变暖BFS

摘要: 宽搜解法 #include #include #include using namespace std; const int N ……

1810:输入输出练习之精度控制3

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){      char ch;      int a;      float b;      double c;&nb

字符串的修改

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int dp[1005][1005];char A[205],B[205];int ……

递增三元组——二分(c++)

摘要: 转了一圈发现没几个用二分的.... 思路很简单,我们先确定中间的数,b[i],然后分别二分查找比b[i]小的以及比b[i]大的数即可。我们可以在比b[i]小的数中,找到最大的数,那么比他小的数,……