闲来无事的题解 摘要:解题思路:注意事项:参考代码:long long a,b; //长整形(100000000000000000000-(-100000000000000000000))int a,b; //普通整…… 题解列表 2023年07月21日 0 点赞 0 评论 500 浏览 评分:2.0
题解 2833:只因币 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int sum=0,a=0 ; int n ; cin>>n…… 题解列表 2023年07月14日 0 点赞 0 评论 587 浏览 评分:9.9
***********金币**************** 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a=0,n,sum=0; cin>>n…… 题解列表 2023年07月14日 0 点赞 0 评论 489 浏览 评分:9.9
金币币币币币币币币 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0,a=0; cin>>n…… 题解列表 2023年07月14日 0 点赞 0 评论 377 浏览 评分:0.0
简单又实用 以下的代码解析:calculateCoins函数接收一个正整数days作为参数,然后使用一个循环计算从第一天开始的给定天数内骑士获得的金币总数。我们使用三个变量:totalCoins表示总金币数,consecutiveDays表示当前连续天数,coinsPerDay表示每天获得的金币数。 题解列表 2023年07月10日 0 点赞 0 评论 1103 浏览 评分:8.0
常规解法 求金币 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,k=0,m=0,sum=0; cin>>n; …… 题解列表 2023年02月21日 0 点赞 0 评论 660 浏览 评分:9.9
2833: 金币(先5星再复制) 摘要:解题思路:一天一天for注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int i,n,a,sum,d…… 题解列表 2023年01月04日 0 点赞 0 评论 565 浏览 评分:9.9