借用改写了用sort() 摘要:解题思路:注意事项:参考代码:while 1: try: n = int(input()) if n …… 题解列表 2025年06月17日 0 点赞 0 评论 82 浏览 评分:0.0
新手乘方计算 摘要:# 这里使用的是for循环int main(){ int a = 0;int n = 0; scanf("%d %d", &a, &n); //判断n是否等于0 …… 题解列表 2025年06月16日 0 点赞 0 评论 53 浏览 评分:0.0
与指定数字相同的数的个数 摘要:int main(){ int N = 0; int m = 0; scanf("%d %d", &N, &m); //读取整数 int count = 0; // 计…… 题解列表 2025年06月16日 0 点赞 0 评论 50 浏览 评分:0.0
欢迎各位新手,哪里有不对的请多多包涵,一起学习一起努力 摘要:解题思路: 根据题目给出1<k<100,其中每个数都是大于等于1 小于等于10的数 …… 题解列表 2025年06月16日 1 点赞 0 评论 79 浏览 评分:10.0
c++解法(新手) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d…… 题解列表 2025年06月15日 1 点赞 0 评论 70 浏览 评分:10.0
c++解法(新手) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c=0…… 题解列表 2025年06月15日 0 点赞 0 评论 64 浏览 评分:10.0
广度优先搜索BFS(cx14a) 摘要:解题思路:从0开始遍历,即从第1行还是查找a[0][i]=1 && visited==0//按行查找矩阵为1,且为没有被遍历的元素//例如第一行的a[0][3]==1 &&am…… 题解列表 2025年05月29日 0 点赞 0 评论 161 浏览 评分:0.0
新手查看满足条件的数累加 摘要:解题思路:注意事项:参考代码:这个是使用的是whileint main(){ int m = 0; int n = 0; scanf("%d %d", &m, &n…… 题解列表 2025年06月15日 1 点赞 0 评论 60 浏览 评分:10.0