2901: 查找特定的值 摘要:```#include using namespace std; int n,x,N[100000]; int main(){ cin>>n; for( int i=1;i>N[i];…… 题解列表 2023年12月01日 0 点赞 0 评论 189 浏览 评分:0.0
答案之中的答案 摘要:解题思路:wu注意事项:wu参考代码:#include <iostream>using namespace std;int main() { int N,sum = 0; cin >> N…… 题解列表 2023年11月30日 0 点赞 1 评论 185 浏览 评分:9.9
3077: 信息学奥赛一本通T1332-周末舞会 摘要:解题思路:自己想注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b…… 题解列表 2023年11月30日 0 点赞 0 评论 269 浏览 评分: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 评论 353 浏览 评分:6.0
利用C++输出1000以内的所有水仙花数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int judgement(int num);int main…… 题解列表 2023年11月30日 0 点赞 0 评论 159 浏览 评分: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 评论 143 浏览 评分:0.0
c++编写字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int num=0,space=0,word=0,other=…… 题解列表 2023年11月30日 0 点赞 0 评论 244 浏览 评分:0.0
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>>x…… 题解列表 2023年11月30日 0 点赞 0 评论 195 浏览 评分:4.7
新手,看大佬思路写的 摘要:解题思路:枚举各个瓜情况有三种:不买当前瓜买当前瓜但不劈买当前瓜劈由于n<=30,3^30肯定超时间,所以要用折半搜索然后用hash表存前面的贡献,同时劈瓜时可能出现浮点数,可以把瓜重×2,目标值×2…… 题解列表 2023年11月30日 0 点赞 1 评论 1116 浏览 评分: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 评论 232 浏览 评分:2.0