题解列表
编写题解 3107: 最短路径(shopth)
摘要:```cpp//有点意思#include #include using namespace std;const int INF=0x3f3f3f3f;struct Node{……
编写题解 3030: 全排列
摘要:非常简单的深搜:```cpp#include#pragma GCC optimize("O2")#pragma G++ optimize("O2")//#pragma GCC ……
1066:自定义函数-x的n次幂/n!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>double main(){ double fac(int n); double mypow(float x,int n);……
2544:N以内的数累加求和
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i=1,sum=0; scanf("%d"……
2000:列举小于n的偶数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i=1,n; scanf("%d",&n); while(i&l……
3010:n以内的奇数偶数之和
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i=1,n,sum1=0,sum2=0; scanf("%d",&……
2834:统计与指定数字相同的数的个数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n);//n个数据 int a……