C++ : 使用循环解决,需要注意0是一位 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain&nb…… 题解列表 2025年08月22日 1 点赞 0 评论 469 浏览 评分:8.0
1047: [编程入门]报数问题 摘要:#include<stdio.h>int main(){ int x, m; scanf("%d" , &x…… 题解列表 2025年08月25日 2 点赞 0 评论 520 浏览 评分:8.0
错一半的看过来!! 摘要:import matha = list(map(int, input().split()))if(len(a)==2): #测试案例中一个是单行输入,另一个是两…… 题解列表 2025年10月06日 1 点赞 0 评论 356 浏览 评分:8.0
c++的两种解法 摘要:方法1 if-else语句#include <iostream>using namespace std;int main() { int a; cin >> a; …… 题解列表 2025年10月27日 0 点赞 0 评论 265 浏览 评分:8.0
图形的规律遍历 摘要:解题思路:周期是 4,因为"2025"长度为 4。第i行(从 0 开始)相当于从"2025"&nbs…… 题解列表 2025年11月29日 13 点赞 1 评论 650 浏览 评分:8.0
2754: 其他基本数据类型存储空间大小 摘要:#include <stdio.h>#include <stdbool.h>int main(){ bool x; char…… 题解列表 2025年12月03日 0 点赞 0 评论 287 浏览 评分:8.0
铺地毯题解 摘要:解题思路:从最底层地毯开始,一直到最上层地毯循环。判断坐标(x,y)是否在此层地毯的范围内,编号应该保持为(最上层的 满足情况的 地毯的编号)。注意事项:将编号赋值为0(n以外的也可以,但0最省事),…… 题解列表 2025年12月07日 1 点赞 1 评论 202 浏览 评分:8.0
最简便 不容置疑 摘要:解题思路:注意事项:参考代码:a = map(int,input().strip().split())print(max(a))…… 题解列表 2025年12月12日 2 点赞 0 评论 340 浏览 评分:8.0
1025: [编程入门]数组插入处理 摘要:解题思路:写出原数组,在最后留一个0,再将我们要插入的数插入原数组就可以了!注意事项:参考代码:#include<stdio.h>int main(){ int …… 题解列表 2026年01月03日 2 点赞 0 评论 521 浏览 评分:8.0
排序 两行解决 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[10];&…… 题解列表 2026年02月14日 0 点赞 0 评论 273 浏览 评分:8.0