蓝桥杯2023年第十四届省赛真题-子串简写 摘要:解题思路:分别记录首字母和尾字母出现的位置,然后遍历数组得出结果。注意事项:降低时间复杂度,不走回头路,时间复杂度由O(n2)降为O(n)。参考代码:#include<stdio.h…… 题解列表 2024年04月05日 0 点赞 0 评论 371 浏览 评分:0.0
1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:import math N = int(input()) arr = [True] * (N + 1) for i in range(2, int(math.sqr…… 题解列表 2024年04月05日 0 点赞 0 评论 225 浏览 评分:0.0
这是一个题解 摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { int n; scanf("%d", &n)…… 题解列表 2024年04月05日 0 点赞 0 评论 215 浏览 评分:0.0
题解 1234: 检查一个数是否为质数 摘要:解题思路:额…………注意事项:注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int mai…… 题解列表 2024年04月05日 0 点赞 0 评论 211 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ struct Date { int year; int month; int day; }s; scanf…… 题解列表 2024年04月05日 0 点赞 0 评论 164 浏览 评分:0.0
题解 2825: 计算多项式的值 (记录本题另一种计算结果精度损失的计算方式) 摘要:```c #include int main() { int i,j,n; double x,count=1.0,count_part; scanf("…… 题解列表 2024年04月05日 0 点赞 1 评论 208 浏览 评分:0.0
c++利用数组记录路径 摘要:解题思路:使用一个bool已经dfs来判断环上点的位置,详细的看代码上的注释注意事项:参考代码:#include<bits/stdc++.h>#define DZT ios::sync_with_st…… 题解列表 2024年04月05日 0 点赞 0 评论 245 浏览 评分:0.0
结构体之成绩记录(结构体数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>struct stu{ char num[20]; char name[20]; int chine…… 题解列表 2024年04月05日 0 点赞 0 评论 156 浏览 评分:0.0
结构体之成绩记录(指针) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct stu{ char num[20]; char name[…… 题解列表 2024年04月05日 0 点赞 0 评论 135 浏览 评分:0.0
结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct stu{ char num[20]; char name[20]; i…… 题解列表 2024年04月05日 0 点赞 0 评论 186 浏览 评分:0.0