Codeforces
角落的秋天
在财经大学读计算机的小伙子,已毕业,GitHub: https://github.com/wintercoder
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Round #260 (Div. 2) C. Boredom【DP】
C. Boredom time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Alex doesn't like boredom. That's why whenever he原创 2014-08-09 15:05:03 · 633 阅读 · 0 评论 -
Codeforces Round #260 (Div. 2) B. Fedya and Maths【超数范围的取模】
Fedya studies in a gymnasium. Fedya's maths hometask is to calculate the following expression: (1n + 2n + 3n + 4n) mod 5 for given value of n. Fedya managed to complete the task. Can you? Note tha原创 2014-08-09 14:40:04 · 579 阅读 · 0 评论 -
Codeforces Round #295 (Div. 2) A、B
A. Pangram 水题,不区分大小写判断字母是不是都出现过至少一次。 #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define ll long long #define e原创 2015-03-02 22:02:24 · 512 阅读 · 0 评论 -
codeforces Round #223 (Div.1) C. Sereja and Brackets【线段树】
的本题可用可不用线段树。 ①线段树解法:首先确定这是一个build()和query()解决的事,不需要update();比较特殊的是这题在query()的时候需要更新值(合并左右括号)。 思路:每个区间保存3个属性,未匹配的左、右括号和已匹配的括号(未匹配的单向括号里不含已匹配的括号)。在合并(pushUp)的时候,把2个子区间的左、右、合法括号(即已匹配)都加上来,合法括号再加上新匹原创 2015-02-06 11:36:02 · 563 阅读 · 0 评论 -
Codeforces Round #260 (Div. 2) A. Laptops【水】
A. Laptops time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output One day Dima and Alex had an argument about the price and quality of laptops. Dima t原创 2014-08-09 14:37:03 · 416 阅读 · 0 评论 -
Codeforces Round #261 (Div. 2) A. Pashmak and Garden【水】
A. Pashmak and Garden time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Pashmak has fallen in love with an att原创 2014-08-17 19:19:27 · 573 阅读 · 0 评论 -
Codeforces Round #261 (Div. 2) B. Pashmak and Flowers【水】
B. Pashmak and Flowers time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Pashmak decided to give Parmida a pai原创 2014-08-17 19:34:48 · 529 阅读 · 0 评论 -
Codeforces Round #261 (Div. 2) E. Pashmak and Graph【DP】
C++的sor默认按<号排序,对int自然可以,对结构体的就不行了,所以要重载原创 2014-08-17 19:40:42 · 698 阅读 · 0 评论 -
Codeforces Round #263 (Div. 2) A、B、C【淼】
A. Appleman and Easy Task time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Toastman came up with a very easy原创 2014-08-27 18:24:19 · 805 阅读 · 0 评论 -
Codeforces Round #367/706 (Div. 2)
多年没打cf,感觉智商上线?原创 2016-08-12 17:30:34 · 672 阅读 · 0 评论
分享