随笔分类 -  codeforce

摘要:题目链接:Codeforces Round #367 (Div. 2) D. Vasiliy's Multiset 题意: 给你一些操作,往一个集合插入和删除一些数,然后?x让你找出与x异或后的最大值 题解: trie树xjb搞就行,每次要贪心,尽量满足高位为1. 1 #include<bits/s 阅读全文
posted @ 2016-08-12 18:36 bin_gege 阅读(131) 评论(0) 推荐(0)
摘要:题目链接:Codeforces Round #367 (Div. 2) C. Hard problem 题意: 给你一些字符串,字符串可以倒置,如果要倒置,就会消耗vi的能量,问你花最少的能量将这些字符串排成字典序 题解: 当时1点过头太晕了,看错题了,然后感觉全世界都会,就我不会,- -!结果就是 阅读全文
posted @ 2016-08-12 15:17 bin_gege 阅读(152) 评论(0) 推荐(0)
摘要:B. Spider Man time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Spider Man time limit p 阅读全文
posted @ 2016-08-08 14:34 bin_gege 阅读(117) 评论(0) 推荐(0)
摘要:C. Thor time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Thor time limit per test 2 se 阅读全文
posted @ 2016-08-08 14:32 bin_gege 阅读(286) 评论(0) 推荐(0)
摘要:D. Road to Post Office time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. Road to Post Of 阅读全文
posted @ 2016-07-30 01:41 bin_gege 阅读(161) 评论(0) 推荐(0)
摘要:B. Powers of Two time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output B. Powers of Two time l 阅读全文
posted @ 2016-07-30 01:35 bin_gege 阅读(294) 评论(0) 推荐(0)
摘要:C. Cellular Network time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output You are given n poin 阅读全文
posted @ 2016-07-30 01:17 bin_gege 阅读(164) 评论(0) 推荐(0)
摘要:E. Connecting Universities time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output E. Connecting 阅读全文
posted @ 2016-07-25 16:48 bin_gege 阅读(154) 评论(0) 推荐(0)
摘要:C. They Are Everywhere time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. They Are Every 阅读全文
posted @ 2016-07-23 17:02 bin_gege 阅读(174) 评论(0) 推荐(0)
摘要:D. As Fast As Possible time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output On vacations n pup 阅读全文
posted @ 2016-07-23 16:48 bin_gege 阅读(186) 评论(0) 推荐(0)
摘要:D. Fix a Tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Fix a Tree time limit p 阅读全文
posted @ 2016-07-20 10:45 bin_gege 阅读(160) 评论(0) 推荐(0)
摘要:B. One Bomb time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given a description o 阅读全文
posted @ 2016-07-20 09:47 bin_gege 阅读(129) 评论(0) 推荐(0)
摘要:C. Vacations time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Vacations time limit per 阅读全文
posted @ 2016-07-20 09:38 bin_gege 阅读(200) 评论(0) 推荐(0)
摘要:题目连接:http://codeforces.com/contest/688/problem/C 题意:给你一些边,问你能否构成一个二分图 题解:二分图:二分图又称作二部图,是图论中的一种特殊模型。 设G=(V,E)是一个无向图,如果顶点V可分割为两个互不相交的子集(A,B),并且图中的每条边(i, 阅读全文
posted @ 2016-07-01 20:35 bin_gege 阅读(157) 评论(0) 推荐(0)
摘要:题目连接:http://codeforces.com/contest/676/problem/B 题意:给你一个N层的杯子堆成的金字塔,倒k个杯子的酒,问倒完后有多少个杯子的酒是满的 题解:由于数据不是很大,直接模拟就行了 1 #include<cstdio> 2 #include<cstring> 阅读全文
posted @ 2016-05-26 21:03 bin_gege 阅读(116) 评论(0) 推荐(0)
摘要:题目连接:http://codeforces.com/contest/676/problem/C 题意:一串字符串,最多改变k次,求最大的相同子串 题解:很明显直接尺取法 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #incl 阅读全文
posted @ 2016-05-26 01:38 bin_gege 阅读(123) 评论(0) 推荐(0)
摘要:D2. Magic Powder - 2 time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The term of this pro 阅读全文
posted @ 2016-05-06 18:54 bin_gege 阅读(142) 评论(0) 推荐(0)