反差法求解猴子吃桃问题——Python 摘要:解题思路:注意事项:参考代码:def caculate_peach_number(n): left_peaches = 1 day = n while day > 1: …… 题解列表 2023年07月08日 0 点赞 0 评论 641 浏览 评分:9.9
2813: 药房管理(C语言)(while循环和数组两种解法)数组解法只能得76分 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int pillnum, n; scanf("%d%d", &pillnum, &n); …… 题解列表 2023年07月08日 0 点赞 0 评论 455 浏览 评分:9.9
1332: 津津的储蓄计划(C语言数组解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a[12]; // 每个月的预算 int i; for(i = 0; i < 12;…… 题解列表 2023年07月08日 0 点赞 2 评论 810 浏览 评分:9.9
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int gg=0,ss=0,bb=0,g,s,b,n…… 题解列表 2023年07月08日 0 点赞 0 评论 357 浏览 评分:0.0
2873: 字符串p型编码 摘要:解题思路: 遍历遍历过程中,判断当前字符str[i]是否与下一个字符str[i + 1]相同。如果相同,表示当前字符连续出现,将计数器count加1。如果不相同,表示当前字符不再连续出现,将当前计数值…… 题解列表 2023年07月08日 0 点赞 0 评论 461 浏览 评分:2.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,n ,sum=0; cin>>m>…… 题解列表 2023年07月08日 0 点赞 0 评论 269 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,n ,sum=0; cin>>m>…… 题解列表 2023年07月08日 0 点赞 0 评论 425 浏览 评分:9.9
题解 2801: 奇数求和 摘要:计算非负整数 m 到 n(包括m 和 n )之间的所有奇数的和,其中,m 不大于n,且n 不大于300。例如 m=3, n=12, 其和则为:3+5+7+9+11=35。解题思路:先思考,如何得到一个…… 题解列表 2023年07月08日 0 点赞 0 评论 612 浏览 评分:9.9
百钱白鸡最简单方法 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ printf("cock=0,hen=25,chicken=75\n…… 题解列表 2023年07月08日 0 点赞 0 评论 553 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a,one=0,five=0,ten=0…… 题解列表 2023年07月08日 0 点赞 0 评论 495 浏览 评分:0.0