题解列表
C语言训练-求素数问题:线性筛
摘要:解题思路: 欧拉筛注意事项:数组范围要大于数据范围参考代码:#include<iostream>
#include<cmath>
using namespace std;
const int N……
蓝桥杯2022年第十三届省赛真题-纸张尺寸
摘要:解题思路:注意事项:参考代码:s = input().strip()n = int(s[1])a = 1189b = 841for i in range(n): a = a//2 if a……
2684: 蓝桥杯2022年第十三届省赛真题-数位排序
摘要:解题思路:注意事项:参考代码:n = int(input())m = int(input())l = [i for i in range(1,n+1)]t = []for i in l: s =……
C语言训练-自守数问题
摘要:解题思路:字符串注意事项:数位与空格参考代码:#include<iostream>
#include<cmath>
#include<string>
using namespace std;
……
船新解法,结构体(c语言)
摘要:```c
#include
#include
typedef struct {
int jishuwei[10],oushuwei[10];
}link;
int haoshu……
C语言训练-自由落体问题
摘要:解题思路:第一次从100落下, 因此为保持运算一致, 初始距离为-100注意事项:参考代码:#include<iostream>
#include<cmath>
#include<string>……
C语言训练-舍罕王的失算(高精度)
摘要:解题思路:高精度注意事项:参考代码:#include#include#includeusing namespace std;
const int N = 1e3 + 10;
int a[N], b……
津津的储蓄计划(python版)
摘要:解题思路:注意事项:参考代码:def progress(x,y): if x<y: return -1 else: less=x-y return……
C语言训练-计算1977!(高精度)
摘要:解题思路:高精度注意事项:数组元素long long参考代码:#include<iostream>
#include<cmath>
#include<string>
using namespac……