题解列表
题解 2914: 铺地毯
摘要: #include
using namespace std;
const int N=10010;
int a[N],b[N],g[N],k[N];
in……
菜鸡写法,分情况就ok
摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string>#include<cstring>#include<algorithm>#include<cmath……
菜鸡写法,嵌套循环遍历
摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string>#include<cstring>#include<algorithm>#include<cmath……
题解 1764: 循环入门练习1
摘要:解题思路:利用高斯的求数方法,没想到对了。注意事项:直接输出结果就行参考代码:#include <bits/stdc++.h>using namespace std;int main(){ co……
善于运用C++的sort函数
摘要:参考代码:#include#includeusing namespace std;
int main()
{
int n;
scanf("%d",&n);
getchar();
/……
2861: 验证子串
摘要:解题思路:无注意事项:无参考代码:#include <bits/stdc++.h>
using namespace std;
int main()
{
string str ;
……
题解 2784: 收集瓶盖赢大奖
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; ……
题解 2779: 输出绝对值
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr……