题解列表
3077: 信息学奥赛一本通T1332-周末舞会
摘要:解题思路:自己想注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b……
利用C++输出1000以内的所有水仙花数
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int judgement(int num);int main……
利用C++来编写求和训练
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h> using namespace std;int a,b,c;int sumOfa(int a);lo……
c++编写字符串分类统计
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int num=0,space=0,word=0,other=……
题解 2772: 苹果和虫子
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>>x……
新手,看大佬思路写的
摘要:解题思路:枚举各个瓜情况有三种:不买当前瓜买当前瓜但不劈买当前瓜劈由于n<=30,3^30肯定超时间,所以要用折半搜索然后用hash表存前面的贡献,同时劈瓜时可能出现浮点数,可以把瓜重×2,目标值×2……
1852: 求1+2+3+...+n的值(重温旧题)
摘要://函数
#include <bits/stdc++.h>
using namespace std;
long long aaaa(int n)
{
int sum =0;
……