上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: http://oj.ecustacm.cn/problem.php?id=1326 等差素数列 不一定是相邻的素数 答案是210 以j为起点,i为公差,向后找9个数字 每个数字比最大的小,并且是质数 #include <bits/stdc++.h> using namespace std; cons 阅读全文
posted @ 2020-04-15 16:54 Hazelxcf 阅读(151) 评论(0) 推荐(0) 编辑
摘要: https://ac.nowcoder.com/acm/problem/collection/160 https://ac.nowcoder.com/acm/problem/collection/382 阅读全文
posted @ 2020-04-15 09:46 Hazelxcf 阅读(81) 评论(0) 推荐(0) 编辑
摘要: https://ac.nowcoder.com/acm/contest/5203/C #include<bits/stdc++.h> using namespace std; int n; int l,r; int ans; int main() { //freopen("in","r",stdin 阅读全文
posted @ 2020-04-15 08:59 Hazelxcf 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 我写的,第二个样例不对,感觉按照题目说的写出来 #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 10; int t,n,m,k,a[maxn],b[maxn]; int c; int main() { //fr 阅读全文
posted @ 2020-04-14 11:24 Hazelxcf 阅读(190) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1335 C n个数字选取一部分分为数量相等的两组,一组全部一样,另一组都不一样 求最大的元素个数 #include<bits/stdc++.h> using namespace std; map<int, int> mp; int t; 阅读全文
posted @ 2020-04-14 07:56 Hazelxcf 阅读(112) 评论(0) 推荐(0) 编辑
摘要: G #include<bits/stdc++.h> using namespace std; #define int long long const int maxn = 1e5 + 10; int n ; int a[maxn]; signed main(){ ios::sync_with_std 阅读全文
posted @ 2020-04-13 17:17 Hazelxcf 阅读(225) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1339 B题 题意很简单, 排序之后,中间两项的绝对值是最小的,输出l,r的顺序 #import<bits/stdc++.h> using namespace std; int i, k, n, t, a[100005]; int ma 阅读全文
posted @ 2020-04-13 08:10 Hazelxcf 阅读(152) 评论(0) 推荐(0) 编辑
摘要: http://oj.ecustacm.cn/problem.php?id=1455 s数值不能设为)0x3f,如果设为它,机器跑不出来,具体我也不知道为什么 再一个,这个题dfs跑不出来,所以提交答案 dfs #include <bits/stdc++.h> using namespace std; 阅读全文
posted @ 2020-04-12 16:14 Hazelxcf 阅读(190) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/367733#problem/B 一样的代码,自己的错了,难受 dalaode #include <iostream> #include<queue> #include<algorithm> #include<string.h> #include 阅读全文
posted @ 2020-04-12 13:19 Hazelxcf 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstring> #include <cstdio> #include <algorithm> using namespace std; int n,k; char ch[10][10]; long long ans; int vis[10 阅读全文
posted @ 2020-04-12 09:56 Hazelxcf 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页