雇佣兵(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年11月09日 0 点赞 0 评论 337 浏览 评分:9.9
问题N 阶乘求和(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2023年11月09日 0 点赞 0 评论 361 浏览 评分:9.9
寻找矩阵最值 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main() { int i=0,j=0; int n=0,max=0,h…… 题解列表 2023年11月09日 0 点赞 0 评论 306 浏览 评分:9.9
Java计算浮点数相除的余数 摘要:解题思路:先转换字符串,之后使用remainder方法求余注意事项:参考代码:import java.math.BigDecimal;import java.util.Scanner;public c…… 题解列表 2023年11月09日 0 点赞 0 评论 603 浏览 评分:9.9
矩阵最大值 摘要:解题思路:1. 导入所需的头文件 `stdio.h` 和 `math.h`。2. 在 `main()` 函数中声明并初始化变量 `i` 和 `j`,它们将用于迭代二维数组的行和列。3. 声明变量 `m…… 题解列表 2023年11月09日 0 点赞 0 评论 472 浏览 评分:9.9
糖果游戏(c代码) 摘要:解题思路:注意事项:代码中的除法运算可能会导致整数溢出,因为数组的每个元素都是一个int类型的整数。如果除数为3的整数结果大于int类型的最大值(2147483647),则可能会导致整数溢出。参考代码…… 题解列表 2023年11月10日 0 点赞 0 评论 492 浏览 评分: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 评论 380 浏览 评分: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 评论 380 浏览 评分:9.9
数位排序暴力 摘要:解题思路:暴力注意事项:无参考代码:#pragma GCC optimize(3) #include <bits/stdc++.h> using namespace std; #define e…… 题解列表 2023年11月10日 0 点赞 0 评论 571 浏览 评分:9.9
优质题解 Yu金币简洁易懂写法 摘要: ##解析: 本题无法直接循环天数和金币数。 但是发现一个规律,连续的n天都发放n枚金币。 我们可以用while循环解决连续n天发放n枚金币。 **我的解法:** sum记…… 题解列表 2023年11月10日 0 点赞 0 评论 574 浏览 评分:9.9