优质题解 Yu金币简洁易懂写法 摘要: ##解析: 本题无法直接循环天数和金币数。 但是发现一个规律,连续的n天都发放n枚金币。 我们可以用while循环解决连续n天发放n枚金币。 **我的解法:** sum记…… 题解列表 2023年11月10日 0 点赞 0 评论 518 浏览 评分:9.9
题目2917:奇数单增排序,C语言 摘要:解题思路:a[]是原数组,b[]奇数数组注意事项:参考代码:#include<stdio.h>void input(int a[],int n); 输入数据。int f(int a[],int b…… 题解列表 2023年11月10日 0 点赞 0 评论 396 浏览 评分:9.9
数字的处理与判断(c语言)递归和循环 摘要:解题思路:首先分3步,第一步用while循环来获取位数第2步用递归来进行正序输出第3步用for循环,在这之前,你需要明白个位数是num/10的0次方,接着在%10取到我们所需要的位数,比如987除10…… 题解列表 2023年11月10日 0 点赞 0 评论 276 浏览 评分:9.9
1738: 排序(冒泡排序) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n, t; // 声明整数变量n和t int arr[100]; // …… 题解列表 2023年11月10日 0 点赞 0 评论 678 浏览 评分:9.9
(字符串匹配问题(strs)) C语言思路简单,易懂!!! 超详细解析 理解万岁 &_&!!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>typedef struct s{ int top; char data[1000]…… 题解列表 2023年11月11日 0 点赞 0 评论 463 浏览 评分:9.9
最高分数的题解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; int i; int a[1000]; int max=0; scanf("%d",&n); f…… 题解列表 2023年11月11日 0 点赞 0 评论 948 浏览 评分:9.9
题解 2769: 计算并联电阻的阻值 摘要:解题思路:1651.注意事项:8741参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double …… 题解列表 2023年11月11日 0 点赞 0 评论 333 浏览 评分:9.9
计算直线的交点数 摘要:limit_max = 21 max_point = 200 # 行下标r代表直线数目,列下标c代表交点数目, # point[r][c]的值(0,1)则代表交点数是否存在 point =…… 题解列表 2023年11月11日 0 点赞 0 评论 439 浏览 评分:9.9
暴力,朴实无华 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;bool o;int y = 0;bool sf(int x, int w){ i…… 题解列表 2023年11月11日 0 点赞 0 评论 282 浏览 评分:9.9
N以内累加求和(Java) 摘要:参考代码:import java.util.Scanner;//输入一个数字N,输出N以内(包含N)的数字之和 (N不超过1000)public class Main { public static …… 题解列表 2023年11月11日 0 点赞 0 评论 409 浏览 评分:9.9