虽然能通过不过我感觉输入一些数答案不是质数!!!例如输入50会输出25!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; scanf("%d",&n); for(i=2;i<n;i++) …… 题解列表 2024年04月16日 0 点赞 0 评论 218 浏览 评分:0.0
蓝桥杯2017年第八届真题-k倍区间 前缀和 摘要:解题思路:#include <iostream> using namespace std; typedef long long ll; const int N = 1e5 + 10; …… 题解列表 2024年04月16日 0 点赞 0 评论 351 浏览 评分:9.9
画矩形普通思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,n; char c; scanf("%d %d %c %d",&x,&y,&c…… 题解列表 2024年04月16日 0 点赞 0 评论 173 浏览 评分:0.0
信息学奥赛一本通T1263-友好城市 摘要:解题思路:转化为最长不下降子序列注意事项:参考代码:#include<iostream> #include<utility> #include<algorithm> using namespac…… 题解列表 2024年04月16日 0 点赞 0 评论 195 浏览 评分:9.9
究极空间换时间之无脑枚举 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=1e5+10;int a0[N],a1[N],a2[N],a…… 题解列表 2024年04月16日 0 点赞 0 评论 347 浏览 评分:6.0
信息学奥赛一本通TT1262-挖地雷 摘要:解题思路:DP 逆推, 邻接矩阵注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N…… 题解列表 2024年04月16日 0 点赞 0 评论 223 浏览 评分:6.0
python--study||O.o 摘要:参考代码:from copy import deepcopy dx = (-1, 0, 1, 0) dy = (0, -1, 0, 1) def judge(x, y): fo…… 题解列表 2024年04月16日 0 点赞 0 评论 301 浏览 评分:0.0
DFS当中的大水题 摘要:``` #include #define int long long #define endl '\n' #define fi first #define se second using…… 题解列表 2024年04月16日 3 点赞 1 评论 1225 浏览 评分:7.3
模拟题暴力题 摘要:``` #include #include #define int long long #define N 10100 using namespace std; bool check(in…… 题解列表 2024年04月16日 0 点赞 0 评论 604 浏览 评分:9.9
2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年04月16日 0 点赞 0 评论 241 浏览 评分:0.0