编写题解 2780: 奇偶数判断 摘要:#include<bits/stdc++.h>using namespace std;int main(){ int i; …… 题解列表 2025年09月10日 0 点赞 0 评论 566 浏览 评分:10.0
二级C语言-计负均正 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; &nb…… 题解列表 2025年09月15日 1 点赞 0 评论 355 浏览 评分:10.0
小白也能看懂 摘要:解题思路:定义一个数组存放9个数,for循环遍历,再定义一个树n放题目要求的数把n和数组里的树比较,小了就替换一直到最后一个数之后就把n放进去了,这时n里是最大的数字,最后直接输出数组的和n即可注意事…… 题解列表 2025年09月15日 2 点赞 0 评论 714 浏览 评分:10.0
蓝桥杯2025年第十六届省赛真题-最短距离 摘要:解题思路:问题分析:该程序的核心功能是计算两个数组中对应元素差值的绝对值之和。通过对数组进行排序,可以确保这种计算方式得到的结果是最小可能的差值总和(这是基于 "排序后对应位置元素匹配可使总…… 题解列表 2025年09月16日 4 点赞 0 评论 791 浏览 评分:10.0
最简单的处理与判断 摘要:解题思路:发现别人的都好复杂,决定自己写一个,一个条件判断,一个计算长度函数,二个循环注意事项:慢慢打磨,寻最简解法参考代码:#include<stdio.h>#include<st…… 题解列表 2025年09月18日 10 点赞 0 评论 1183 浏览 评分:10.0
[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:include<stdio.h>typedef struct Student{ char ID[100]; …… 题解列表 2025年09月18日 2 点赞 0 评论 417 浏览 评分:10.0
[编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) yearint main(){ int year=0;&…… 题解列表 2025年09月19日 2 点赞 0 评论 546 浏览 评分:10.0
看了几个发现好麻烦 于是尝试写了一个 摘要:解题思路:注意事项:参考代码:include<stdio.h>int main(){ double d=1; int n=2; …… 题解列表 2025年09月22日 6 点赞 0 评论 943 浏览 评分:10.0
优雅的代码往往只需要一个简单的偏移量就能搞定! 摘要: #include #include #include #include using namespace std; const int dx[] = {-2,-2,2,2,1,-1…… 题解列表 2025年09月29日 3 点赞 0 评论 287 浏览 评分: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 评论 421 浏览 评分:10.0