Java计算浮点数相除的余数 摘要:解题思路:先转换字符串,之后使用remainder方法求余注意事项:参考代码:import java.math.BigDecimal;import java.util.Scanner;public c…… 题解列表 2023年11月09日 0 点赞 0 评论 642 浏览 评分:9.9
矩阵最大值 摘要:解题思路:1. 导入所需的头文件 `stdio.h` 和 `math.h`。2. 在 `main()` 函数中声明并初始化变量 `i` 和 `j`,它们将用于迭代二维数组的行和列。3. 声明变量 `m…… 题解列表 2023年11月09日 0 点赞 0 评论 506 浏览 评分:9.9
糖果游戏(c代码) 摘要:解题思路:注意事项:代码中的除法运算可能会导致整数溢出,因为数组的每个元素都是一个int类型的整数。如果除数为3的整数结果大于int类型的最大值(2147483647),则可能会导致整数溢出。参考代码…… 题解列表 2023年11月10日 0 点赞 0 评论 534 浏览 评分:9.9
2797: 最高的分数 摘要:``` #include using namespace std; int main(){ int n,b,a=0; cin>>n; for(int i=1;i>b; if(a…… 题解列表 2023年11月10日 0 点赞 0 评论 394 浏览 评分:9.9
题解 2813: 药房管理 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d=0,e=0; cin>>a>>b; …… 题解列表 2023年11月10日 0 点赞 0 评论 414 浏览 评分:9.9
数位排序暴力 摘要:解题思路:暴力注意事项:无参考代码:#pragma GCC optimize(3) #include <bits/stdc++.h> using namespace std; #define e…… 题解列表 2023年11月10日 0 点赞 0 评论 609 浏览 评分:9.9
优质题解 Yu金币简洁易懂写法 摘要: ##解析: 本题无法直接循环天数和金币数。 但是发现一个规律,连续的n天都发放n枚金币。 我们可以用while循环解决连续n天发放n枚金币。 **我的解法:** sum记…… 题解列表 2023年11月10日 0 点赞 0 评论 610 浏览 评分: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 评论 454 浏览 评分:9.9
数字的处理与判断(c语言)递归和循环 摘要:解题思路:首先分3步,第一步用while循环来获取位数第2步用递归来进行正序输出第3步用for循环,在这之前,你需要明白个位数是num/10的0次方,接着在%10取到我们所需要的位数,比如987除10…… 题解列表 2023年11月10日 0 点赞 0 评论 338 浏览 评分:9.9
1738: 排序(冒泡排序) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n, t; // 声明整数变量n和t int arr[100]; // …… 题解列表 2023年11月10日 0 点赞 0 评论 775 浏览 评分:9.9