虽然能通过不过我感觉输入一些数答案不是质数!!!例如输入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 评论 539 浏览 评分:0.0
蓝桥杯2017年第八届真题-k倍区间 前缀和 摘要:解题思路:#include <iostream> using namespace std; typedef long long ll; const int N = 1e5 + 10; …… 题解列表 2024年04月16日 0 点赞 0 评论 677 浏览 评分: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 评论 419 浏览 评分:0.0
信息学奥赛一本通T1263-友好城市 摘要:解题思路:转化为最长不下降子序列注意事项:参考代码:#include<iostream> #include<utility> #include<algorithm> using namespac…… 题解列表 2024年04月16日 0 点赞 0 评论 470 浏览 评分: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 评论 651 浏览 评分:6.0
信息学奥赛一本通TT1262-挖地雷 摘要:解题思路:DP 逆推, 邻接矩阵注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N…… 题解列表 2024年04月16日 0 点赞 0 评论 498 浏览 评分: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 评论 666 浏览 评分:0.0
DFS当中的大水题 ```#include#defineintlonglong#defineendl'\n'#definefifirst#definesesecondusingnamespacestd;usingPII=pair;constintN=1e6+10, 题解列表 2024年04月16日 3 点赞 1 评论 1581 浏览 评分:7.3
模拟题暴力题 ```#include#include#defineintlonglong#defineN10100usingnamespacestd;boolcheck(intx){intsum=1;while(x){intres=x%10;if(res%2==0&&sum%2!=0||res%2!=0&&sum% 题解列表 2024年04月16日 0 点赞 0 评论 878 浏览 评分:9.9
2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年04月16日 0 点赞 0 评论 554 浏览 评分:0.0