简单用法“建议新手观看” 摘要:解题思路:注意事项:参考代码:n=int(input())a=1b=0c=1for i in range(1,n+1): c+=1 b=a print(a,end=" ") f…… 题解列表 2023年11月08日 0 点赞 0 评论 601 浏览 评分:9.9
Python运行超时,直接投靠Java 摘要:解题思路: 将我的Python代码给gpt翻译成Java即可。注意事项: 注意int变成long,不然第九题是错的。参考代码:import java.util.*; public c…… 题解列表 2023年11月08日 0 点赞 0 评论 1305 浏览 评分:9.9
题解 2806: 人口增长问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int n; doubl…… 题解列表 2023年11月08日 0 点赞 0 评论 492 浏览 评分:0.0
3077: 信息学奥赛一本通T1332-周末舞会 摘要:``` #include using namespace std; int main(){ int m,w,a; cin>>m>>w>>a; int b=0,c=0; for(…… 题解列表 2023年11月08日 0 点赞 0 评论 694 浏览 评分:9.9
题解 2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int z,f=0,b,c=0; cin>>b>>z; f=…… 题解列表 2023年11月08日 0 点赞 0 评论 611 浏览 评分:9.9
题解 2804: 与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int z,f,b,c=0; cin>>b>>z; for(…… 题解列表 2023年11月08日 0 点赞 0 评论 421 浏览 评分:0.0
题解 2803: 整数的个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int f,a,b,c=0,d=0,e=0; cin>>b;…… 题解列表 2023年11月08日 0 点赞 0 评论 515 浏览 评分:0.0
题解 2802: 满足条件的数累加 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c=0,d; cin>>a>>b; for(…… 题解列表 2023年11月08日 0 点赞 0 评论 586 浏览 评分:0.0
题解 2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c=0,d; cin>>a>>b; if(a…… 题解列表 2023年11月08日 0 点赞 0 评论 496 浏览 评分:9.9
C++ |1017完数的判断| 不用数组、自定义函数的“笨方法” ###根本不用数组、函数!###极其明了、通俗易懂!######之所以叫笨方法,N值大了之后会明显变慢######而且该代码用了两次重复的遍历来寻找因子以便按格式输出######不过如果不需要输出因子,也就不需要重复遍历了#####因此,大佬请火速离场~#####因此, 题解列表 2023年11月08日 0 点赞 0 评论 674 浏览 评分:9.9