随笔分类 -  【ONLINE_JUDGE_CODEFOCES】

1
摘要:bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longconst int MAXN=1010;int a[MAXN>t; int ... 阅读全文
posted @ 2018-07-29 15:52 Bryce1010 阅读(190) 评论(0) 推荐(0)
摘要:bryce1010模板 http://codeforces.com/gym/101810#includeusing namespace std;#define ll long longll a[1000005];int main(){ int t,n,temp;... 阅读全文
posted @ 2018-07-29 15:51 Bryce1010 阅读(107) 评论(0) 推荐(0)
摘要:bryce1010模板 http://codeforces.com/gym/101810#includeusing namespace std;#define ll long long const ll maxn = 1e5 + 5;const ll mod = 1e... 阅读全文
posted @ 2018-07-29 15:50 Bryce1010 阅读(207) 评论(0) 推荐(0)
摘要:bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longint main(){ int t; scanf("%d",&t);... 阅读全文
posted @ 2018-07-29 15:49 Bryce1010 阅读(130) 评论(0) 推荐(0)
摘要:bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longll lowbit(ll x){ return x&(-x);}int m... 阅读全文
posted @ 2018-07-29 15:48 Bryce1010 阅读(129) 评论(0) 推荐(0)
摘要:bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longint main() { int T; cin >> T; wh... 阅读全文
posted @ 2018-07-29 15:40 Bryce1010 阅读(140) 评论(0) 推荐(0)
摘要:bryce1010模板 http://codeforces.com/gym/101810/problem/A 大模拟,写崩了,代码借队友的。。。。。。注意处理段与段的连接问题:#includeusing namespace std;const int maxn=1e5... 阅读全文
posted @ 2018-07-29 15:39 Bryce1010 阅读(206) 评论(0) 推荐(0)
摘要:Codeforces Round #497 (Div. 2)打的虚拟赛,感觉这场比赛出题人成功背锅,不仅给了N个Announcement,题意也比较难懂。打完后D过了一个,E题防AK了。像我这样的菜鸟也能半小时内A完前三个(当时第一名的大佬是10分钟解决了前3个)A.... 阅读全文
posted @ 2018-07-24 10:54 Bryce1010 阅读(68) 评论(0) 推荐(0)
摘要:Bryce1010模板http://codeforces.com/contest/1008/problems#include using namespace std;#define ll long longconst int MAXN=1e5+10;const int... 阅读全文
posted @ 2018-07-24 10:50 Bryce1010 阅读(71) 评论(0) 推荐(0)
摘要:Bryce1010模板http://codeforces.com/contest/1008/problems#include using namespace std;#define ll long longconst int MAXN=1e5+10;const int... 阅读全文
posted @ 2018-07-24 10:48 Bryce1010 阅读(77) 评论(0) 推荐(0)
摘要:Bryce1010模板http://codeforces.com/contest/1008/problems#include using namespace std;int main(){ sets; s.insert('a'); s.insert(... 阅读全文
posted @ 2018-07-24 10:45 Bryce1010 阅读(86) 评论(0) 推荐(0)
摘要:Educational Codeforces Round 46 (Rated for Div. 2) http://codeforces.com/contest/1000 A. Codehorses T-shirtshttps://blog.csdn.net/Fire... 阅读全文
posted @ 2018-07-17 11:01 Bryce1010 阅读(73) 评论(0) 推荐(0)
摘要:Bryce1010模板http://codeforces.com/contest/1000/problem/E题意: 给一个无向图,求图的最长直径。思路:对无向图缩点以后,求图的最长直径#include#define ll long long using namesp... 阅读全文
posted @ 2018-07-17 10:57 Bryce1010 阅读(90) 评论(0) 推荐(0)
摘要:Bryce1010模板http://codeforces.com/problemset/problem/1000/D 题意: 要求一个序列有多少个子好序列。 思路:组合数+动态规划#includeusing namespace std;#define ll long ... 阅读全文
posted @ 2018-07-17 10:55 Bryce1010 阅读(67) 评论(0) 推荐(0)
摘要:Bryce1010模板 http://codeforces.com/problemset/problem/1000/C题意:问你从[l,r]区间的被多少条线覆盖,列出所有答案。 思路:类似括号匹配的做法#include using namespace std;#def... 阅读全文
posted @ 2018-07-17 10:51 Bryce1010 阅读(80) 评论(0) 推荐(0)
摘要:Bryce1010模板http://codeforces.com/problemset/problem/1000/B思路:先用两个数组sumon[]和sumoff[]将亮着的灯和灭的灯累计一下。 然后从左到右扫描插入一个开关,取得到的最大值。#includeusing... 阅读全文
posted @ 2018-07-17 10:48 Bryce1010 阅读(81) 评论(0) 推荐(0)
摘要:Bryce1010模板http://codeforces.com/problemset/problem/1000/A 题意: 问你将一种类型的衣服转换成另一种的最小次数。#includeusing namespace std;#define ll long longl... 阅读全文
posted @ 2018-07-17 10:43 Bryce1010 阅读(75) 评论(0) 推荐(0)
摘要:Educational Codeforces Round 44 (Rated for Div. 2)A. Chess Placing #include using namespace std;const int MAXN=205;int a[MAXN];int ma... 阅读全文
posted @ 2018-05-22 23:07 Bryce1010 阅读(103) 评论(0) 推荐(0)
摘要:A. Wrong Subtraction#include using namespace std;int main(){ int n,k; cin>>n>>k; while(k--) { int tmp=n%10; ... 阅读全文
posted @ 2018-05-08 12:20 Bryce1010 阅读(98) 评论(0) 推荐(0)
摘要:A. Primal Sporttime limit per test1.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob b... 阅读全文
posted @ 2018-03-17 14:24 Bryce1010 阅读(93) 评论(0) 推荐(0)

1