思路简单适合新手,无swap 摘要:#include#includeusing namespace std;int input(int nu[]){ for(int i = 0;i>nu[i]; }…… 题解列表 2025年08月25日 0 点赞 0 评论 220 浏览 评分:10.0
编写题解 2751: 超级玛丽游戏 摘要:#include<bits/stdc++.h>using namespace std;int main(){ cout<<" &…… 题解列表 2025年09月10日 0 点赞 1 评论 395 浏览 评分:10.0
编写题解 2780: 奇偶数判断 摘要:#include<bits/stdc++.h>using namespace std;int main(){ int i; …… 题解列表 2025年09月10日 0 点赞 0 评论 412 浏览 评分:10.0
二级C语言-计负均正 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; &nb…… 题解列表 2025年09月15日 1 点赞 0 评论 244 浏览 评分:10.0
小白也能看懂 摘要:解题思路:定义一个数组存放9个数,for循环遍历,再定义一个树n放题目要求的数把n和数组里的树比较,小了就替换一直到最后一个数之后就把n放进去了,这时n里是最大的数字,最后直接输出数组的和n即可注意事…… 题解列表 2025年09月15日 2 点赞 0 评论 560 浏览 评分:10.0
最简单的处理与判断 摘要:解题思路:发现别人的都好复杂,决定自己写一个,一个条件判断,一个计算长度函数,二个循环注意事项:慢慢打磨,寻最简解法参考代码:#include<stdio.h>#include<st…… 题解列表 2025年09月18日 8 点赞 0 评论 1043 浏览 评分:10.0
[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:include<stdio.h>typedef struct Student{ char ID[100]; …… 题解列表 2025年09月18日 2 点赞 0 评论 218 浏览 评分:10.0
看了几个发现好麻烦 于是尝试写了一个 摘要:解题思路:注意事项:参考代码:include<stdio.h>int main(){ double d=1; int n=2; …… 题解列表 2025年09月22日 4 点赞 0 评论 791 浏览 评分:10.0
优雅的代码往往只需要一个简单的偏移量就能搞定! 摘要: #include #include #include #include using namespace std; const int dx[] = {-2,-2,2,2,1,-1…… 题解列表 2025年09月29日 3 点赞 0 评论 213 浏览 评分:10.0
编写题解 1047: [编程入门]报数问题巨简单 摘要:n = int(input())a = list(range(n))count = 1index = 0while len(a) > 1: if (index > len(a…… 题解列表 2025年10月05日 0 点赞 0 评论 197 浏览 评分:10.0