Codeforces Round 622 (Div. 2)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
1313 Codeforces Round 622 (Div. 2) FINISHED False 7200 154731263 Feb. 23, 2020, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1370 ) D Happy New Year PROGRAMMING bitmasks dp implementation 2600

B"Being Santa Claus is very difficult. Sometimes you have to deal with difficult situations. Today Santa Claus came to the holiday and there were m children lined up in front of him. Let's number them from 1 to m . Grandfather Frost knows n spells. The i -th spell gives a candy to every child whose place is in the [L_i, R_i] range. Each spell can be used at most once. It is also known that if all spells are used, each child will receive at most k candies. It is not good for children to eat a lot of sweets, so each child can eat no more than one candy, while the remaining candies will be equally divided between his (or her) Mom and Dad. So it turns out that if a child would be given an even amount of candies (possibly zero), then he (or she) will be unable to eat any candies and will go sad. However, the rest of the children (who received an odd number of candies) will be happy. Help Santa Claus to know the maximum number of children he can make happy by casting some of his spells. The first line contains three integers of n , m , and k ( 1 <= q n <= q 100 ,000, 1 <= q m <= q 10^9, 1 <= q k <= q 8 ) -- the number of spells, the number of children and the upper limit on the number of candy a child can get if all spells are used, respectively. This is followed by n lines, each containing integers L_i and R_i ( 1 <= q L_i <= q R_i <= q m ) -- the parameters of the i spell. Print a single integer -- the maximum number of children that Santa can make happy. In the first example, Santa should apply the first and third spell. In this case all children will be happy except the third. "...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
71698694 __santongding D Feb. 23, 2020, 2:57 p.m. OK GNU C++11 TESTS 59 78 819200 2600
71828493 C.S.T.T D Feb. 25, 2020, 12:51 a.m. OK GNU C++11 TESTS 60 78 1638400 2600
71834718 tzc_wk D Feb. 25, 2020, 4:58 a.m. OK GNU C++11 TESTS 60 93 1638400 2600
71766790 linly8713 D Feb. 24, 2020, 1:46 p.m. OK GNU C++11 TESTS 60 93 3174400 2600
71702923 RainAir D Feb. 23, 2020, 4:10 p.m. OK GNU C++11 TESTS 60 93 10444800 2600
71837199 chenyewei_1234 D Feb. 25, 2020, 6:01 a.m. OK GNU C++11 TESTS 60 124 3174400 2600
71893762 OIer_whx D Feb. 26, 2020, 4:06 a.m. OK GNU C++11 TESTS 60 124 4403200 2600
71861904 OIer_whx D Feb. 25, 2020, 1:49 p.m. OK GNU C++11 TESTS 60 124 4403200 2600
71931608 mmi366127 D Feb. 26, 2020, 5:54 p.m. OK GNU C++11 TESTS 60 140 3174400 2600
71859094 EncodeTalker D Feb. 25, 2020, 1:07 p.m. OK GNU C++11 TESTS 60 140 3584000 2600
71744725 EDIEEee D Feb. 24, 2020, 5:28 a.m. OK GNU C++14 TESTS 60 124 6348800 2600
71953539 Willem D Feb. 27, 2020, 6:12 a.m. OK GNU C++14 TESTS 60 155 13824000 2600
71953878 Willem D Feb. 27, 2020, 6:21 a.m. OK GNU C++14 TESTS 60 156 13824000 2600
71953127 Willem D Feb. 27, 2020, 6:02 a.m. OK GNU C++14 TESTS 60 171 17817600 2600
71727887 yan-zp D Feb. 23, 2020, 6:44 p.m. OK GNU C++14 TESTS 60 186 10444800 2600
71685364 mateusz D Feb. 23, 2020, 11:03 a.m. OK GNU C++14 TESTS 59 186 246067200 2600
71833786 fanqeixi D Feb. 25, 2020, 4:30 a.m. OK GNU C++14 TESTS 60 187 2867200 2600
71743963 EDIEEee D Feb. 24, 2020, 5:02 a.m. OK GNU C++14 TESTS 60 202 209203200 2600
71676711 Crazy_Diamond D Feb. 23, 2020, 10:30 a.m. OK GNU C++14 TESTS 59 233 12595200 2600
71690960 hitonanode D Feb. 23, 2020, 12:36 p.m. OK GNU C++14 TESTS 59 233 17100800 2600
71834540 PolarSea D Feb. 25, 2020, 4:53 a.m. OK GNU C++17 TESTS 60 93 1638400 2600
71750287 ftiasch D Feb. 24, 2020, 7:52 a.m. OK GNU C++17 TESTS 60 93 1638400 2600
71822119 limbo.null D Feb. 24, 2020, 8:12 p.m. OK GNU C++17 TESTS 60 93 3174400 2600
71753986 SheepRanger D Feb. 24, 2020, 9:17 a.m. OK GNU C++17 TESTS 60 140 4812800 2600
71954856 pierre5340 D Feb. 27, 2020, 6:42 a.m. OK GNU C++17 TESTS 60 155 3174400 2600
71664908 fake123_loves_me D Feb. 23, 2020, 9:46 a.m. OK GNU C++17 TESTS 59 155 5222400 2600
71907430 xz153531 D Feb. 26, 2020, 10:33 a.m. OK GNU C++17 TESTS 60 156 3174400 2600
71966722 NRCover D Feb. 27, 2020, 10:52 a.m. OK GNU C++17 TESTS 60 156 4403200 2600
71737647 xyx0711 D Feb. 24, 2020, 12:38 a.m. OK GNU C++17 TESTS 60 171 3584000 2600
71967053 NRCover D Feb. 27, 2020, 11 a.m. OK GNU C++17 TESTS 60 171 4403200 2600
71854818 TheSawan D Feb. 25, 2020, 11:58 a.m. OK Java 11 TESTS 60 733 294400000 2600
71734873 barakraganosungam D Feb. 23, 2020, 10:05 p.m. OK Java 8 TESTS 60 638 417894400 2600
71735081 barakraganosungam D Feb. 23, 2020, 10:13 p.m. OK Java 8 TESTS 60 654 417996800 2600
71924118 KharYusuf D Feb. 26, 2020, 3:41 p.m. OK Java 8 TESTS 60 655 2662400 2600
71924064 KharYusuf D Feb. 26, 2020, 3:40 p.m. OK Java 8 TESTS 60 670 2662400 2600
71742931 cwise D Feb. 24, 2020, 4:27 a.m. OK Java 8 TESTS 60 1653 530329600 2600
71741607 cwise D Feb. 24, 2020, 3:42 a.m. OK Java 8 TESTS 60 1871 530329600 2600
71678094 fatwizard2020 D Feb. 23, 2020, 10:35 a.m. OK Kotlin TESTS 59 811 5017600 2600
71678001 sansen D Feb. 23, 2020, 10:35 a.m. OK Rust TESTS 59 1918 7987200 2600

remove filters

Back to search problems