1332: 津津的储蓄计划(C语言数组解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a[12]; // 每个月的预算 int i; for(i = 0; i < 12;…… 题解列表 2023年07月08日 0 点赞 2 评论 725 浏览 评分:9.9
2813: 药房管理(C语言)(while循环和数组两种解法)数组解法只能得76分 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int pillnum, n; scanf("%d%d", &pillnum, &n); …… 题解列表 2023年07月08日 0 点赞 0 评论 368 浏览 评分:9.9
反差法求解猴子吃桃问题——Python 摘要:解题思路:注意事项:参考代码:def caculate_peach_number(n): left_peaches = 1 day = n while day > 1: …… 题解列表 2023年07月08日 0 点赞 0 评论 512 浏览 评分:9.9
2811: 救援(C语言,重点就是向上取整用ceil()函数,不然的话就会报错) 摘要: #include #include int main() { int n; // 屋顶数 int x, y; // 坐标 int num; // 人数 …… 题解列表 2023年07月08日 0 点赞 0 评论 486 浏览 评分:9.9
C语言训练-斐波纳契数列 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(int argc, char** argv) { int n,a=1,b=1,c; …… 题解列表 2023年07月08日 0 点赞 0 评论 346 浏览 评分:0.0
优质题解 整数序列的元素最大跨度值(详细题解) 摘要:这道题的题目是“整数序列的元素最大跨度值”。给定一个整数序列,我们需要找到序列中的最大值和最小值,并计算它们之间的差值,即为最大跨度值。以下是详细的题解思路和步骤:1. 首先,我们定义两个变量 max…… 题解列表 2023年07月08日 2 点赞 2 评论 1510 浏览 评分:9.0
暴力破题。。。 摘要:解题思路: 暴力破题。参考代码:#include <bits/stdc++.h> using namespace std; int main() { int op[400]=…… 题解列表 2023年07月07日 0 点赞 0 评论 326 浏览 评分:9.9
2810: 鸡尾酒疗法(C语言,二维数组的解法) 摘要: #include int main() { int n; scanf("%d",&n); double a[n][2];//这里的数组我设置的是double,因为后面的精度…… 题解列表 2023年07月07日 0 点赞 1 评论 782 浏览 评分:9.5
桥杯2013年第四届真题-买不到的数目 摘要:##蓝桥杯2013年第四届真题-买不到的数目 ```cpp #include using namespace std; int main() { int m,n,imax,a[10100…… 题解列表 2023年07月07日 0 点赞 0 评论 411 浏览 评分:0.0
2809: 菲波那契数列(C语言) 摘要: #include int main() { int k; scanf("%d",&k); int a=1,b=1,c=0; int i; if(k==1||k=…… 题解列表 2023年07月07日 0 点赞 1 评论 871 浏览 评分:9.2