3077: 信息学奥赛一本通T1332-周末舞会 摘要:解题思路:自己想注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b…… 题解列表 2023年11月30日 0 点赞 0 评论 430 浏览 评分:9.9
c++ 边乘边加 摘要:#include<iostream> using namespace std; int a[1000],b[1000]; void cheng(int a[],int c) { int j…… 题解列表 2023年11月30日 0 点赞 0 评论 512 浏览 评分:6.0
利用C++输出1000以内的所有水仙花数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int judgement(int num);int main…… 题解列表 2023年11月30日 0 点赞 0 评论 321 浏览 评分:0.0
利用C++来编写求和训练 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h> using namespace std;int a,b,c;int sumOfa(int a);lo…… 题解列表 2023年11月30日 0 点赞 0 评论 312 浏览 评分:0.0
c++编写字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int num=0,space=0,word=0,other=…… 题解列表 2023年11月30日 0 点赞 0 评论 402 浏览 评分:0.0
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>>x…… 题解列表 2023年11月30日 0 点赞 0 评论 347 浏览 评分:4.7
新手,看大佬思路写的 摘要:解题思路:枚举各个瓜情况有三种:不买当前瓜买当前瓜但不劈买当前瓜劈由于n<=30,3^30肯定超时间,所以要用折半搜索然后用hash表存前面的贡献,同时劈瓜时可能出现浮点数,可以把瓜重×2,目标值×2…… 题解列表 2023年11月30日 0 点赞 1 评论 1281 浏览 评分:4.0
1852: 求1+2+3+...+n的值(重温旧题) 摘要://函数 #include <bits/stdc++.h> using namespace std; long long aaaa(int n) { int sum =0; …… 题解列表 2023年11月29日 0 点赞 0 评论 383 浏览 评分:2.0
2821: 开关灯 摘要:``` #include using namespace std; int l[5001],m,n; int main() { cin>>n>>m; for( int i=2; i…… 题解列表 2023年11月29日 0 点赞 0 评论 248 浏览 评分:0.0
题解 2837: 年龄与疾病 摘要: #include using namespace std; int a[100],c; double b,sh,q,z,l; int main(){ …… 题解列表 2023年11月29日 0 点赞 1 评论 457 浏览 评分:9.9