[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:include<stdio.h>typedef struct Student{ char ID[100]; …… 题解列表 2025年09月18日 2 点赞 0 评论 367 浏览 评分:10.0
[编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) yearint main(){ int year=0;&…… 题解列表 2025年09月19日 2 点赞 0 评论 491 浏览 评分:10.0
看了几个发现好麻烦 于是尝试写了一个 摘要:解题思路:注意事项:参考代码:include<stdio.h>int main(){ double d=1; int n=2; …… 题解列表 2025年09月22日 6 点赞 0 评论 894 浏览 评分:10.0
优雅的代码往往只需要一个简单的偏移量就能搞定! 摘要: #include #include #include #include using namespace std; const int dx[] = {-2,-2,2,2,1,-1…… 题解列表 2025年09月29日 3 点赞 0 评论 244 浏览 评分: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 评论 359 浏览 评分:10.0
[STL训练]周瑜的反间计:利用vector<vector<int>>存储数据,之后利用二分法查询,结构清晰 摘要:1、解题思路:利用vector<vector<int>>存储数据,之后利用二分法查询,打印输出。2、注意事项:注意每个case后有一个空行。3、参考代码:#include<…… 题解列表 2025年10月06日 2 点赞 0 评论 178 浏览 评分:10.0
巨简单 1052: [编程入门]链表合并 摘要:a, b = map(int,input().split())s = [list(map(int,input().split())) for _ in range(a+b)]s.sort(ke…… 题解列表 2025年10月06日 2 点赞 0 评论 483 浏览 评分:10.0
c语言 输出亲朋字符串 (运用scanf输入空格的例子) 摘要:解题思路:运用%x[^\n]来输入空格,x为文本长度注意事项:测试中包含输入空格参考代码:#include<stdio.h>#include<string.h>int main…… 题解列表 2025年10月09日 0 点赞 0 评论 227 浏览 评分:10.0
天才优质解法 摘要:解题思路:将其分成三堆,n足够大时,根据规律就是对n求以3为底的对数,n大于2之后,k就要从1开始加,所以k的初始值应该是1注意事项:参考代码:#include<stdio.h>#incl…… 题解列表 2025年10月11日 2 点赞 0 评论 230 浏览 评分:10.0
蓝桥杯2025年第十六届省赛真题题解-红黑树 摘要:### 序列构造与查询(红黑树序列)### 解题思路1. **序列构造规则**: 本题通过 C 语言位域和数组实现了一个**自相似的二进制序列**的构造和查询。代码中将序列…… 题解列表 2025年10月13日 1 点赞 0 评论 662 浏览 评分:10.0