
Codeforces 集合
nobleman__
加油王先生
展开
-
codeforces950 C. Zebras【贪心】
C. Zebras time limit per test1 second memory limit per test512 megabytes Oleg writes down the history of the days he lived. For each day he decides if it was good or bad. Oleg calls a non-empty seq...原创 2018-03-10 09:12:56 · 850 阅读 · 0 评论 -
codeforces580 C. Kefa and Park【dfs】
C. Kefa and Park time limit per test2 seconds memory limit per test256 megabytes Kefa decided to celebrate his first big salary by going to the restaurant. He lives by an unusual park. The park is...原创 2018-03-10 22:20:13 · 504 阅读 · 0 评论 -
codeforces 954 D. Fight Against Traffic【BFS + 最短路】
D. Fight Against Traffic time limit per test1 second memory limit per test256 megabytes Little town Nsk consists of n junctions connected by m bidirectional roads. Each road connects two distinct j...原创 2018-03-22 20:41:19 · 1833 阅读 · 0 评论 -
codeforces554 C. Kyoya and Colored Balls【组合数 + 思维 + 阶乘逆元】
C. Kyoya and Colored Balls time limit per test2 seconds memory limit per test256 megabytes Kyoya Ootori has a bag with n colored balls that are colored with k different colors. The colors are label...原创 2018-03-22 21:56:04 · 326 阅读 · 0 评论 -
codeforces 383 A. Milking cows【贪心 + 前缀和】
A. Milking cows time limit per test1 second memory limit per test256 megabytes Iahub helps his grandfather at the farm. Today he must milk the cows. There are n cows sitting in a row, numbered from...原创 2018-03-19 22:05:35 · 563 阅读 · 0 评论 -
codeforces771 A. Bear and Friendship Condition 【并查集】
A. Bear and Friendship Condition time limit per test1 second memory limit per test256 megabytes Bear Limak examines a social network. Its main functionality is that two members can become friends (...原创 2018-04-09 21:30:20 · 523 阅读 · 0 评论 -
codeforces55 D. Beautiful numbers【经典数位dp】
D. Beautiful numbers time limit per test4 seconds memory limit per test256 megabytes Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beauti...原创 2018-04-24 17:43:28 · 378 阅读 · 0 评论 -
Codeforces Round #486 (Div. 3) E. Divisibility by 25【贪心】【模拟】
E. Divisibility by 25 time limit per test1 second memory limit per test256 megabytes You are given an integer n from 1 to 1018 without leading zeroes. In one move you can swap any two adjacent digits ...原创 2019-01-27 22:24:23 · 297 阅读 · 0 评论