编写题解 2833: 金币,python超简单 摘要:def calculate_coins(days): coins = 0 # 初始化骑士收到的金币总数为0 n = 1 # 初始化每天的金币数量为1 day_coun…… 题解列表 2024年03月27日 0 点赞 0 评论 281 浏览 评分:0.0
最最最简单简单 2833: 金币,不用while,注释写好了 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main() { int n, total=0; // n 天数…… 题解列表 2023年12月18日 0 点赞 0 评论 136 浏览 评分:0.0
题解 2833: 金币 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int sum=0,d=0,n; cin>>n; …… 题解列表 2024年01月26日 0 点赞 1 评论 99 浏览 评分:0.0
题解 2833: 金币 摘要: #include using namespace std; int main() { int sum=0,d=0,a; cin>>a; …… 题解列表 2023年11月24日 0 点赞 0 评论 141 浏览 评分:0.0
2833: 金币 摘要:``` #include using namespace std; int x,sum=0,j=0,m=1; int main(){ cin>>x; for( int i=1;i…… 题解列表 2023年11月20日 0 点赞 0 评论 122 浏览 评分:0.0
编写题解 2833: 金币 摘要:解题思路:注意不符合常规天数递增的冗余天数注意事项:参考代码:package test; //题目 2833: 金币 import java.util.Scanner; public class…… 题解列表 2024年01月27日 0 点赞 0 评论 145 浏览 评分:0.0
2833: 金币2833: 金币2833: 金币 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int x=0,d=0,n; cin>>n; fo…… 题解列表 2024年01月31日 0 点赞 0 评论 134 浏览 评分:0.0
python 2833: 金币 摘要:参考代码:n = int(input()) s = 0 money = 0 flag = n day = n while day > 0: flag -= 1 money…… 题解列表 2024年03月19日 0 点赞 0 评论 141 浏览 评分:0.0
金币(是阅读思考题,开始以天数的for循环来做,不好做,还就那个突然悟到了,用while循环,不好文字说) 摘要:解题思路:设每天获取的金币数为i,题目可以看出获取的金币数也是获取该金币数的天数注意事项:参考代码:#includeint main() { int n; int i=1;//金币数 i…… 题解列表 2023年10月05日 0 点赞 0 评论 126 浏览 评分:0.0
闲来无事的题解1111111 摘要:解题思路:注意事项:参考代码:long long a,b; //长整形(100000000000000000000-(-100000000000000000000))int a,b; //普通整…… 题解列表 2023年07月21日 0 点赞 0 评论 184 浏览 评分:0.0