我看没有人用结构体数组解,那我就写了一个(C语言) 摘要:1)**常规解法** 我真的服了,第一次我是用这个方法,结果只过了50%,说是时间超限,找了半天实在不知道哪有问题,我就想着那就用结构体数组,用空间换时间。结构体数组过了,然后我看题解,发现大家都用…… 题解列表 2024年08月12日 2 点赞 0 评论 464 浏览 评分:10.0
明明的随机数C++,使用vector函数 摘要:解题思路:利用vector容器设置数组先去重在排序,使用选择排序参考代码:#include<iostream>#include<vector>using namespace std;//选择排序voi…… 题解列表 2024年08月12日 0 点赞 0 评论 359 浏览 评分:0.0
C语言训练-计算1977!(高精度) 摘要:解题思路:高精度注意事项:数组元素long long参考代码:#include<iostream> #include<cmath> #include<string> using namespac…… 题解列表 2024年08月12日 2 点赞 0 评论 509 浏览 评分:6.0
津津的储蓄计划(python版) 摘要:解题思路:注意事项:参考代码:def progress(x,y): if x<y: return -1 else: less=x-y return…… 题解列表 2024年08月12日 0 点赞 0 评论 494 浏览 评分:10.0
C语言训练-舍罕王的失算(高精度) 摘要:解题思路:高精度注意事项:参考代码:#include#include#includeusing namespace std; const int N = 1e3 + 10; int a[N], b…… 题解列表 2024年08月12日 0 点赞 0 评论 477 浏览 评分:9.9
C语言训练-自由落体问题 摘要:解题思路:第一次从100落下, 因此为保持运算一致, 初始距离为-100注意事项:参考代码:#include<iostream> #include<cmath> #include<string> …… 题解列表 2024年08月12日 0 点赞 0 评论 388 浏览 评分:9.9
船新解法,结构体(c语言) 摘要:```c #include #include typedef struct { int jishuwei[10],oushuwei[10]; }link; int haoshu…… 题解列表 2024年08月12日 0 点赞 0 评论 514 浏览 评分:9.9
C语言训练-自守数问题 摘要:解题思路:字符串注意事项:数位与空格参考代码:#include<iostream> #include<cmath> #include<string> using namespace std; …… 题解列表 2024年08月12日 0 点赞 0 评论 347 浏览 评分:0.0
2684: 蓝桥杯2022年第十三届省赛真题-数位排序 摘要:解题思路:注意事项:参考代码:n = int(input())m = int(input())l = [i for i in range(1,n+1)]t = []for i in l: s =…… 题解列表 2024年08月12日 0 点赞 0 评论 516 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:注意事项:参考代码:s = input().strip()n = int(s[1])a = 1189b = 841for i in range(n): a = a//2 if a…… 题解列表 2024年08月12日 4 点赞 0 评论 687 浏览 评分:0.0