题解列表
亲和串,简洁扼要,正解。(加入了循环队列思想哦)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<set>#include<cstdio>#include<algorithm>using namespace std……
枚举法 列出所有的可能
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d,e,f; for(a=0……
题目 1172: 计算两点间的距离解答
摘要:解题思路:(x1-x2)^2+(y1-y2)^2=d^2注意事项:参考代码:#include<iostream>#include<cstdio>#include<cmath>using namespa……
题目 1171: 蟠桃记解答
摘要:解题思路:a[n]=2*(a[n]+1)注意事项:别忘了if(n==1) result=1;这两行!参考代码:#includeusing namespace std;
int f(int n){
……
一个刚刚开始刷题的菜鸟!!
摘要:解题思路:仔细观察,将这个数列构造出来就行了;注意事项:参考代码:#include<iostream> using namespace std;int main(){ int n,sum=0; int……
自定义函数之字符串反转
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char a[1000]; cin>>a; for(int ……
[编程入门]自定义函数之字符串连接
摘要:解题思路:直接相加即可注意事项:头文件#include#includeusing namespace std;void func(string n,string m){ cout<<n+m;}int……
题解1151: C语言训练-计算一个整数N的阶乘
摘要:解题思路:高精度乘法即可。注意事项:参考代码:#include<iostream>using namespace std;int c[10000] = {0};int len = 1 , n;void……