上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
摘要: 我写的,第二个样例不对,感觉按照题目说的写出来 #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 阅读(193) 评论(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 阅读(116) 评论(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 阅读(241) 评论(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 阅读(157) 评论(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 阅读(193) 评论(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 阅读(164) 评论(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 阅读(152) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P2599 全部不为1的时候 如果面临两部分相等,那么后手赢 否则先手赢 #include<bits/stdc++.h> using namespace std; int t,n,a1,an,c; int main() { //fre 阅读全文
posted @ 2020-04-11 20:03 Hazelxcf 阅读(173) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1045 #include <bits/stdc++.h> using namespace std; int n; char ch[10][10]; int dp[4][2] = {-1,0,1,0,0,-1,0,1 阅读全文
posted @ 2020-04-11 18:22 Hazelxcf 阅读(152) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1728 要注意题目给的输入顺序, dfs里面第三条如果不共线并且相应步数已经到了的话 #include <bits/stdc++.h> using namespace std; int t,m,n,k,x1,yy1 阅读全文
posted @ 2020-04-11 16:49 Hazelxcf 阅读(136) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页