题解列表
2797: 最高的分数
摘要:```
#include
using namespace std;
int main(){
int n,b,a=0;
cin>>n;
for(int i=1;i>b;
if(a……
题解 2813: 药房管理
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d=0,e=0; cin>>a>>b; ……
优质题解
Yu金币简洁易懂写法
摘要:
##解析:
本题无法直接循环天数和金币数。
但是发现一个规律,连续的n天都发放n枚金币。
我们可以用while循环解决连续n天发放n枚金币。
**我的解法:**
sum记……
题目2917:奇数单增排序,C语言
摘要:解题思路:a[]是原数组,b[]奇数数组注意事项:参考代码:#include<stdio.h>void input(int a[],int n); 输入数据。int f(int a[],int b……
数字的处理与判断(c语言)递归和循环
摘要:解题思路:首先分3步,第一步用while循环来获取位数第2步用递归来进行正序输出第3步用for循环,在这之前,你需要明白个位数是num/10的0次方,接着在%10取到我们所需要的位数,比如987除10……
1738: 排序(冒泡排序)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main() {
int n, t; // 声明整数变量n和t
int arr[100]; // ……
(字符串匹配问题(strs)) C语言思路简单,易懂!!! 超详细解析 理解万岁 &_&!!!!
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>typedef struct s{ int top; char data[1000]……