2817: 级数求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long k; double s=0…… 题解列表 2024年01月15日 0 点赞 1 评论 305 浏览 评分:9.9
题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long m,n,gcd=0; cin>…… 题解列表 2024年01月15日 0 点赞 0 评论 209 浏览 评分:9.9
最大公约数与最小公倍数 1011 摘要:解题思路:#include<iostream>#include<algorithm>using namespace std;int main(){int a,b;cin>>a>>b;cout<<__g…… 题解列表 2024年01月15日 0 点赞 0 评论 246 浏览 评分:9.9
题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; fo…… 题解列表 2024年01月15日 0 点赞 0 评论 251 浏览 评分:9.9
3013: 求小数的某一位 摘要:解题思路:注意事项:这里的cout要在外面写a的值可以改变参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long lo…… 题解列表 2024年01月15日 0 点赞 0 评论 288 浏览 评分:9.9
2819: 数字反转 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n, s = 0; cin >> n; while (n) …… 题解列表 2024年01月15日 0 点赞 3 评论 176 浏览 评分:9.9
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a; cin>>a; …… 题解列表 2024年01月15日 0 点赞 0 评论 206 浏览 评分:9.9
海底小纵队在线救援 摘要:解题思路:从头理清慢慢算注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner scanner …… 题解列表 2024年01月15日 0 点赞 0 评论 354 浏览 评分:9.9
使用java实现这个问题(更新 摘要:解题思路:注意要有第二个临时数组实时保存每一天同时进行战斗的,然后重新赋值给初始board,否则按顺序来战斗的话,会影响到初始情况注意事项:(我不知道为啥要在day的循环里先进行board2的赋值,而…… 题解列表 2024年01月15日 0 点赞 0 评论 303 浏览 评分:9.9
利用数学公式求和 摘要:解题思路:由题易知,此题为求解前n项和,但其前n项和不是等比或等差数列,通过观察得知,其中每一项(2,22,222...)均为等比数列前n项和。即:222=2*10^0+2*10^1+2*10^2=2…… 题解列表 2024年01月16日 0 点赞 0 评论 429 浏览 评分:9.9