题解列表

筛选

拓扑排序qaqaq

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> //就是一个字符串关系型的拓扑排序  using namespace std; struct node{ int……
优质题解

3种方法+从简到繁 完成 排列

摘要:解题思路:1.暴力法:使用一个数组存输入的4个数,每次去掉其中一个;然后对于剩余3个数,使用2个for循环选择前2个, 最后一个则等于6-i-j-k (考虑互不相等,i、j、k 最大为 3、2、1 ……

编写题解 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 ……