2803: 整数的个数(C语言,数组解法) 摘要: #include int main() { int n; scanf("%d",&n); int a[n]; int i; for(i=0;i…… 题解列表 2023年07月07日 0 点赞 0 评论 560 浏览 评分:9.9
2805: 乘方计算(C语言之奇奇怪怪解法) 摘要: #include //power 函数使用递归方式计算乘方。如果指数 n 为 0,返回 1。如果指数 n 为偶数,递归计算 a^(n/2) 并返回结果的平方。如果指数 n 为奇数,递归计算 a…… 题解列表 2023年07月07日 0 点赞 1 评论 537 浏览 评分:9.9
2819: 数字反转(C语言解法)(while循环) 摘要: #include int main() { int num; scanf("%d",&num); int newnum=0;//新反转过来的数 int a; w…… 题解列表 2023年07月07日 1 点赞 0 评论 635 浏览 评分:9.9
暴力破题。。。 摘要:解题思路: 暴力破题。参考代码:#include <bits/stdc++.h> using namespace std; int main() { int op[400]=…… 题解列表 2023年07月07日 0 点赞 0 评论 344 浏览 评分:9.9
2811: 救援(C语言,重点就是向上取整用ceil()函数,不然的话就会报错) 摘要: #include #include int main() { int n; // 屋顶数 int x, y; // 坐标 int num; // 人数 …… 题解列表 2023年07月08日 0 点赞 0 评论 495 浏览 评分:9.9
反差法求解猴子吃桃问题——Python 摘要:解题思路:注意事项:参考代码:def caculate_peach_number(n): left_peaches = 1 day = n while day > 1: …… 题解列表 2023年07月08日 0 点赞 0 评论 531 浏览 评分:9.9
2813: 药房管理(C语言)(while循环和数组两种解法)数组解法只能得76分 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int pillnum, n; scanf("%d%d", &pillnum, &n); …… 题解列表 2023年07月08日 0 点赞 0 评论 385 浏览 评分:9.9
1332: 津津的储蓄计划(C语言数组解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a[12]; // 每个月的预算 int i; for(i = 0; i < 12;…… 题解列表 2023年07月08日 0 点赞 2 评论 737 浏览 评分:9.9
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,n ,sum=0; cin>>m>…… 题解列表 2023年07月08日 0 点赞 0 评论 386 浏览 评分: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 评论 515 浏览 评分:9.9