凭啥我Java没有优质题解!!!最详细Java题解。 摘要: package Dotcpp; import java.util.Scanner; public class 题目1011__最大公约数与最小公倍数…… 题解列表 2023年05月06日 0 点赞 0 评论 459 浏览 评分:8.0
循环的范围要注意 摘要:解题思路:注意事项:参考代码:n=int(input())l=list(map(int,input().split()))mx=0cou=1##for i in range(max(l)+1):## …… 题解列表 2023年05月06日 0 点赞 1 评论 487 浏览 评分:0.0
加油加油count 摘要:解题思路:注意事项:参考代码:n=int(input())l=list(map(int,input().split()))for i in range(0,max(l)+1): if i not…… 题解列表 2023年05月06日 0 点赞 0 评论 471 浏览 评分:9.9
寻找矩阵最值(for循环易懂) 摘要:解题思路:假设矩阵[i,j] (1)[i,j+1] (2)[i+1,j] (3)[i+1,j+1] (4)使用for循环找出max,a[i][j+1]>a[i][j]&&a[i+1][…… 题解列表 2023年05月06日 0 点赞 0 评论 326 浏览 评分:0.0
C++解矩阵的两对角线的元素之和 摘要:矩阵的两对角线的相加,需要注意的是当矩阵是奇数阶的时候,要去除对角线的相同元素即可 ```cpp #include using namespace std; int main() { …… 题解列表 2023年05月05日 0 点赞 0 评论 523 浏览 评分:9.9
自然数的拆分DFS 摘要:```cpp #include using namespace std; int n,d[9999999]; void dfs(int x,int c) //x表示的是已经找出…… 题解列表 2023年05月05日 0 点赞 0 评论 773 浏览 评分:4.7
1024题: 矩阵对角线求和 摘要:# 自己写的代码 ```c #include int main() { int a[3][3]; int i,j,sum1 = 0,sum2 = 0; for(i…… 题解列表 2023年05月05日 0 点赞 0 评论 436 浏览 评分:0.0
1023题: 选择排序 摘要:# 思路代码 选择排序的思路会,但是实现的代码不太会 # 参考代码1 ```c #include void selectsort(int a[],int n); int main() {…… 题解列表 2023年05月05日 0 点赞 0 评论 314 浏览 评分:0.0
1023题: 选择排序 摘要:# 思路代码 选择排序的思路会,但是实现的代码不太会 # 参考代码1 ```c #include void selectsort(int a[],int n); int main() {…… 题解列表 2023年05月05日 0 点赞 0 评论 400 浏览 评分:0.0
1022题:筛选N以内的素数 摘要:# 自己写的代码 ```c #include int main() { int n; scanf("%d",&n); for(int i=2;i…… 题解列表 2023年05月05日 0 点赞 0 评论 316 浏览 评分:0.0