Codeforces Round 574 (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
1195 Codeforces Round 574 (Div. 2) FINISHED False 7200 168449099 July 17, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 26480 ) C Basketball Exercise PROGRAMMING dp 1400

B"Finally, a basketball court has been opened in SIS, so Demid has decided to hold a basketball exercise session. 2 cdot n students have come to Demid's exercise session, and he lined up them into two rows of the same size (there are exactly n people in each row). Students are numbered from 1 to n in each row in order from left to right. Now Demid wants to choose a team to play basketball. He will choose players from left to right, and the index of each chosen player (excluding the first one taken) will be strictly greater than the index of the previously chosen player. To avoid giving preference to one of the rows, Demid chooses students in such a way that no consecutive chosen students belong to the same row. The first student can be chosen among all 2n students (there are no additional constraints), and a team can consist of any number of students. Demid thinks, that in order to compose a perfect team, he should choose students in such a way, that the total height of all chosen students is maximum possible. Help Demid to find the maximum possible total height of players in a team he can choose. The first line of the input contains a single integer n ( 1 <= n <= 10^5 ) -- the number of students in each row. The second line of the input contains n integers h_{1, 1}, h_{1, 2}, ldots, h_{1, n} ( 1 <= h_{1, i} <= 10^9 ), where h_{1, i} is the height of the i -th student in the first row. The third line of the input contains n integers h_{2, 1}, h_{2, 2}, ldots, h_{2, n} ( 1 <= h_{2, i} <= 10^9 ), where h_{2, i} is the height of the i -th student in the second row. Print a single integer -- the maximum possible total height of players in a team Demid can choose. In the first example Demid can choose the following team as follows: In the second example Demid can choose the following team as follows: "...

Tutorials

Разбор Codeforces Round #574 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
57844064 vjudge3 C July 27, 2019, 10:22 a.m. OK Clang++17 Diagnostics TESTS 20 108 4096000 1400
57844001 vjudge1 C July 27, 2019, 10:21 a.m. OK Clang++17 Diagnostics TESTS 20 109 3174400 1400
57843732 vjudge5 C July 27, 2019, 10:15 a.m. OK Clang++17 Diagnostics TESTS 20 109 4096000 1400
57842794 vjudge4 C July 27, 2019, 9:55 a.m. OK Clang++17 Diagnostics TESTS 20 109 4096000 1400
57842871 vjudge3 C July 27, 2019, 9:57 a.m. OK Clang++17 Diagnostics TESTS 20 109 6656000 1400
57839868 vjudge2 C July 27, 2019, 8:54 a.m. OK Clang++17 Diagnostics TESTS 20 124 2457600 1400
57842720 vjudge2 C July 27, 2019, 9:54 a.m. OK Clang++17 Diagnostics TESTS 20 124 2457600 1400
57841218 vjudge3 C July 27, 2019, 9:22 a.m. OK Clang++17 Diagnostics TESTS 20 124 3174400 1400
57842003 vjudge3 C July 27, 2019, 9:38 a.m. OK Clang++17 Diagnostics TESTS 20 124 3276800 1400
66435246 vjudge2 C Dec. 7, 2019, 5:51 a.m. OK Clang++17 Diagnostics TESTS 20 1029 3891200 1400
57935995 hatsuyuki15 C July 29, 2019, 10:45 a.m. OK D TESTS 20 109 3686400 1400
57433517 rosekiller1211 C July 21, 2019, 3:13 a.m. OK FPC TESTS 20 77 3174400 1400
63657924 chaorenhaha C Oct. 28, 2019, 1:14 p.m. OK FPC TESTS 20 77 3174400 1400
67783211 canhtoana2k23 C Dec. 28, 2019, 11:45 a.m. OK FPC TESTS 20 77 3276800 1400
64157972 Fidisk C Nov. 3, 2019, 1:26 p.m. OK FPC TESTS 20 77 3276800 1400
67783832 canhtoana2k23 C Dec. 28, 2019, 11:58 a.m. OK FPC TESTS 20 77 3276800 1400
57448281 minhkha C July 21, 2019, 8:53 a.m. OK FPC TESTS 20 77 3584000 1400
57235101 LaSWeeG C July 17, 2019, 4:19 p.m. OK FPC TESTS 20 78 3174400 1400
66269855 Dream.to C Dec. 4, 2019, 11:54 a.m. OK GNU C11 TESTS 20 46 819200 1400
61579360 kaiboy C Oct. 1, 2019, 12:16 a.m. OK GNU C11 TESTS 20 46 819200 1400
57675383 gregr C July 24, 2019, 3:37 p.m. OK GNU C11 TESTS 20 46 819200 1400
57337943 Soumya_123 C July 19, 2019, 4:59 p.m. OK GNU C11 TESTS 20 46 819200 1400
57246004 Alfeh C July 17, 2019, 7:25 p.m. OK GNU C11 TESTS 20 62 1638400 1400
57420812 cs234_shrey C July 20, 2019, 6:14 p.m. OK GNU C11 TESTS 20 62 1638400 1400
58248403 ATA__ C Aug. 4, 2019, 6:38 a.m. OK GNU C11 TESTS 20 62 2355200 1400
57232287 tejava C July 17, 2019, 4:07 p.m. OK GNU C11 TESTS 20 62 2457600 1400
57323612 ashk_21 C July 19, 2019, 11:08 a.m. OK GNU C11 TESTS 20 62 3174400 1400
63089616 MHHasan C Oct. 21, 2019, 5:53 p.m. OK GNU C11 TESTS 20 62 3174400 1400
58906918 shengzihang C Aug. 16, 2019, 11:33 a.m. OK GNU C++11 TESTS 20 30 5324800 1400
57569885 x_faraway_x C July 23, 2019, 4:47 a.m. OK GNU C++11 TESTS 20 31 614400 1400
59125055 luogu_bot4 C Aug. 20, 2019, 8:52 a.m. OK GNU C++11 TESTS 20 31 2355200 1400
60245070 dysyn1314 C Sept. 8, 2019, 1:47 a.m. OK GNU C++11 TESTS 20 31 2457600 1400
57311490 vjudge5 C July 19, 2019, 6:38 a.m. OK GNU C++11 TESTS 20 31 2457600 1400
57256120 Persephone C July 18, 2019, 2:32 a.m. OK GNU C++11 TESTS 20 31 2457600 1400
57252090 Heartlessly C July 18, 2019, 12:06 a.m. OK GNU C++11 TESTS 20 31 2457600 1400
59077523 luogu_bot2 C Aug. 19, 2019, 7:45 a.m. OK GNU C++11 TESTS 20 31 3072000 1400
59076425 luogu_bot4 C Aug. 19, 2019, 7:19 a.m. OK GNU C++11 TESTS 20 31 3072000 1400
58433445 CTP_314 C Aug. 7, 2019, 12:50 p.m. OK GNU C++11 TESTS 20 31 3072000 1400
57234707 dy2000 C July 17, 2019, 4:17 p.m. OK GNU C++14 TESTS 20 46 1536000 1400
58319739 nik1995 C Aug. 5, 2019, 5:08 a.m. OK GNU C++14 TESTS 20 46 3174400 1400
58867549 rhrnald C Aug. 15, 2019, 1:58 p.m. OK GNU C++14 TESTS 20 46 24064000 1400
58104381 too_young_too_top1 C Aug. 1, 2019, 3:14 a.m. OK GNU C++14 TESTS 20 61 2457600 1400
57487256 vjudge5 C July 22, 2019, 5:50 a.m. OK GNU C++14 TESTS 20 61 3174400 1400
57306439 lijiatu C July 19, 2019, 4:08 a.m. OK GNU C++14 TESTS 20 61 5734400 1400
57250229 rakhejaforu.ar C July 17, 2019, 10:12 p.m. OK GNU C++14 TESTS 20 61 7168000 1400
57276125 harshjngd C July 18, 2019, 10:55 a.m. OK GNU C++14 TESTS 20 62 1228800 1400
57582722 as221b C July 23, 2019, 9:26 a.m. OK GNU C++14 TESTS 20 62 1228800 1400
61713309 siddhant1 C Oct. 2, 2019, 11:57 a.m. OK GNU C++14 TESTS 20 62 1638400 1400
57918752 ygy C July 29, 2019, 3:13 a.m. OK GNU C++17 TESTS 20 31 5836800 1400
58257374 HHH793 C Aug. 4, 2019, 10:39 a.m. OK GNU C++17 TESTS 20 46 2355200 1400
67772521 LJZ_C C Dec. 28, 2019, 7:27 a.m. OK GNU C++17 TESTS 20 46 2560000 1400
58904800 vjudge5 C Aug. 16, 2019, 10:37 a.m. OK GNU C++17 TESTS 20 46 3174400 1400
57466813 lesskreker C July 21, 2019, 3:56 p.m. OK GNU C++17 TESTS 20 46 3276800 1400
57245638 Poorya7899 C July 17, 2019, 7:15 p.m. OK GNU C++17 TESTS 20 61 1536000 1400
58637247 Trys_Like_Buffalo C Aug. 12, 2019, 1:19 a.m. OK GNU C++17 TESTS 20 61 2457600 1400
58569379 Alex_3102 C Aug. 11, 2019, 9:24 a.m. OK GNU C++17 TESTS 20 61 2457600 1400
58904724 vjudge2 C Aug. 16, 2019, 10:35 a.m. OK GNU C++17 TESTS 20 61 3174400 1400
59252890 vjudge4 C Aug. 22, 2019, 5:05 a.m. OK GNU C++17 TESTS 20 61 3174400 1400
59709850 reanimatorzon C Aug. 30, 2019, 2:13 p.m. OK Go TESTS 20 77 4505600 1400
59626141 sighduck C Aug. 28, 2019, 4:01 p.m. OK Go TESTS 20 186 4505600 1400
57299170 Daario C July 18, 2019, 9:27 p.m. OK Go TESTS 20 186 4505600 1400
57351574 kkohtaka C July 20, 2019, 3:57 a.m. OK Go TESTS 20 187 5324800 1400
57507255 predicate C July 22, 2019, 12:28 p.m. OK Go TESTS 20 202 18329600 1400
59263439 RetiredProgrammer C Aug. 22, 2019, 9:37 a.m. OK Haskell TESTS 20 826 145100800 1400
65722237 elkadymohammed01 C Nov. 25, 2019, 7:50 p.m. OK Java 11 TESTS 20 202 0 1400
68946658 bakekaga C Jan. 16, 2020, 4:25 p.m. OK Java 11 TESTS 20 233 409600 1400
69861085 GiantTornado C Jan. 30, 2020, 6:32 p.m. OK Java 11 TESTS 20 233 6860800 1400
68364077 satya_p54 C Jan. 7, 2020, 3:15 p.m. OK Java 11 TESTS 20 233 11776000 1400
65544230 mdazmat9 C Nov. 22, 2019, 4:35 p.m. OK Java 11 TESTS 20 249 204800 1400
68860234 shamdin C Jan. 15, 2020, 11:51 a.m. OK Java 11 TESTS 20 249 4403200 1400
68678625 lunarBlues C Jan. 12, 2020, 8:03 p.m. OK Java 11 TESTS 20 436 0 1400
65926665 samuelbohl C Nov. 28, 2019, 6:39 p.m. OK Java 11 TESTS 20 451 0 1400
69674791 shubh_jha98 C Jan. 28, 2020, 1:58 p.m. OK Java 11 TESTS 20 452 0 1400
68741439 lunarBlues C Jan. 14, 2020, 1:28 a.m. OK Java 11 TESTS 20 452 0 1400
57240796 Dukkha C July 17, 2019, 5:36 p.m. OK Java 8 TESTS 20 109 0 1400
57811905 abhi2601 C July 26, 2019, 5:45 p.m. OK Java 8 TESTS 20 124 0 1400
66815810 akifpathan C Dec. 14, 2019, 5:39 a.m. OK Java 8 TESTS 20 124 0 1400
66636430 chojh1222 C Dec. 11, 2019, 1:06 p.m. OK Java 8 TESTS 20 124 0 1400
63508053 codrex C Oct. 26, 2019, 7:26 p.m. OK Java 8 TESTS 20 124 0 1400
63281336 yaminote C Oct. 24, 2019, 8:47 a.m. OK Java 8 TESTS 20 124 0 1400
58986923 atarw C Aug. 18, 2019, 7:31 a.m. OK Java 8 TESTS 20 124 0 1400
58258253 kant97 C Aug. 4, 2019, 11:05 a.m. OK Java 8 TESTS 20 124 0 1400
57596715 abdomisan C July 23, 2019, 2:12 p.m. OK Java 8 TESTS 20 124 0 1400
57359959 revanthreddy85 C July 20, 2019, 7:25 a.m. OK Java 8 TESTS 20 124 0 1400
57338466 borls C July 19, 2019, 5:16 p.m. OK JavaScript TESTS 20 139 28979200 1400
57344189 kuzAnatoliy C July 19, 2019, 9:06 p.m. OK JavaScript TESTS 20 140 28057600 1400
57247054 mongolrgata C July 17, 2019, 7:57 p.m. OK JavaScript TESTS 20 140 30208000 1400
57823423 kotter C July 27, 2019, 1:25 a.m. OK Kotlin TESTS 20 233 8806400 1400
57259097 Spheniscine C July 18, 2019, 4:01 a.m. OK Kotlin TESTS 20 358 10956800 1400
57297715 Flame239 C July 18, 2019, 8:24 p.m. OK Kotlin TESTS 20 373 10956800 1400
57259070 Spheniscine C July 18, 2019, 3:59 a.m. OK Kotlin TESTS 20 374 10956800 1400
57258998 Spheniscine C July 18, 2019, 3:57 a.m. OK Kotlin TESTS 20 374 10956800 1400
57233764 IamLev C July 17, 2019, 4:13 p.m. OK Kotlin TESTS 20 374 12697600 1400
57250622 Tlatoani C July 17, 2019, 10:34 p.m. OK Kotlin TESTS 20 404 0 1400
57957879 pfft C July 29, 2019, 7:49 p.m. OK Kotlin TESTS 20 405 10854400 1400
57262514 og.kostya C July 18, 2019, 5:53 a.m. OK Mono C# TESTS 20 77 7168000 1400
57462426 fasdfs12137 C July 21, 2019, 2:12 p.m. OK Mono C# TESTS 20 124 25497600 1400
59106640 Giangvp C Aug. 19, 2019, 6:18 p.m. OK Mono C# TESTS 20 124 25497600 1400
57622138 treasuryonly C July 24, 2019, 5:23 a.m. OK Mono C# TESTS 20 124 25497600 1400
57376539 artworks C July 20, 2019, 12:49 p.m. OK Mono C# TESTS 20 139 31539200 1400
65220791 nastya1199 C Nov. 16, 2019, 8:45 p.m. OK Mono C# TESTS 20 140 28057600 1400
57315771 Dimon2305 C July 19, 2019, 8:09 a.m. OK Mono C# TESTS 20 140 30412800 1400
57233190 artworks C July 17, 2019, 4:10 p.m. OK Mono C# TESTS 20 155 36556800 1400
57856670 zazak C July 27, 2019, 3:25 p.m. OK Mono C# TESTS 20 171 38604800 1400
57232945 kichi2004 C July 17, 2019, 4:09 p.m. OK Mono C# TESTS 20 1169 45158400 1400
59114683 vjudge5 C Aug. 20, 2019, 12:36 a.m. OK MS C++ TESTS 20 46 1740800 1400
59114630 vjudge3 C Aug. 20, 2019, 12:33 a.m. OK MS C++ TESTS 20 46 1740800 1400
58989713 vjudge4 C Aug. 18, 2019, 8:42 a.m. OK MS C++ TESTS 20 46 2457600 1400
58416111 scorpiowf C Aug. 7, 2019, 5:04 a.m. OK MS C++ TESTS 20 46 2457600 1400
57313115 vjudge4 C July 19, 2019, 7:14 a.m. OK MS C++ TESTS 20 46 3174400 1400
57732869 vjudge3 C July 25, 2019, 9:04 a.m. OK MS C++ TESTS 20 46 3174400 1400
65749391 vjudge2 C Nov. 26, 2019, 1:28 p.m. OK MS C++ TESTS 20 46 3174400 1400
65255883 vjudge4 C Nov. 17, 2019, 1:24 p.m. OK MS C++ TESTS 20 46 3174400 1400
59084169 vjudge2 C Aug. 19, 2019, 10:26 a.m. OK MS C++ TESTS 20 46 3174400 1400
69649688 vjudge2 C Jan. 28, 2020, 4:22 a.m. OK MS C++ TESTS 20 46 3993600 1400
57253507 920848348 C July 18, 2019, 1:14 a.m. OK MS C++ 2017 TESTS 20 62 3174400 1400
57251872 vjudge4 C July 17, 2019, 11:52 p.m. OK MS C++ 2017 TESTS 20 77 1638400 1400
59092527 vjudge4 C Aug. 19, 2019, 1:10 p.m. OK MS C++ 2017 TESTS 20 77 3174400 1400
61553160 vjudge5 C Sept. 30, 2019, 1:10 p.m. OK MS C++ 2017 TESTS 20 77 3174400 1400
57353532 tyk07tianxingjian C July 20, 2019, 5:08 a.m. OK MS C++ 2017 TESTS 20 77 20070400 1400
57302664 2017224400 C July 19, 2019, 1:24 a.m. OK MS C++ 2017 TESTS 20 78 2457600 1400
57266395 hwangganzi C July 18, 2019, 7:19 a.m. OK MS C++ 2017 TESTS 20 78 3174400 1400
57771732 DZY666 C July 26, 2019, 1:15 a.m. OK MS C++ 2017 TESTS 20 78 3174400 1400
57251769 vjudge3 C July 17, 2019, 11:47 p.m. OK MS C++ 2017 TESTS 20 78 3174400 1400
63487061 extreme-r C Oct. 26, 2019, 1:28 p.m. OK MS C++ 2017 TESTS 20 78 3993600 1400
57573601 lazyc97 C July 23, 2019, 6:14 a.m. OK Ocaml TESTS 20 93 12697600 1400
57248189 c1729 C July 17, 2019, 8:37 p.m. OK PyPy 2 TESTS 20 186 12390400 1400
57266486 hoangphuoc25 C July 18, 2019, 7:21 a.m. OK PyPy 2 TESTS 20 186 15769600 1400
57308953 danielfleischman C July 19, 2019, 5:37 a.m. OK PyPy 2 TESTS 20 187 15257600 1400
57251416 snape_here C July 17, 2019, 11:27 p.m. OK PyPy 2 TESTS 20 202 12492800 1400
57238399 Madhur1906 C July 17, 2019, 4:33 p.m. OK PyPy 2 TESTS 20 218 16281600 1400
57241931 raj1307 C July 17, 2019, 5:52 p.m. OK PyPy 2 TESTS 20 233 20480000 1400
58831482 ssk497 C Aug. 14, 2019, 6:08 p.m. OK PyPy 2 TESTS 20 264 16281600 1400
57301036 -Morass- C July 18, 2019, 11:35 p.m. OK PyPy 2 TESTS 20 264 28979200 1400
59915951 petabyte0 C Sept. 2, 2019, 7:12 p.m. OK PyPy 2 TESTS 20 280 28672000 1400
58973926 yumtam C Aug. 17, 2019, 10:27 p.m. OK PyPy 2 TESTS 20 295 23347200 1400
64506073 lke_python C Nov. 8, 2019, 6:54 a.m. OK PyPy 3 TESTS 20 327 13721600 1400
57244413 swapnil2597 C July 17, 2019, 6:42 p.m. OK PyPy 3 TESTS 20 343 12902400 1400
58086168 tai45236 C July 31, 2019, 3:42 p.m. OK PyPy 3 TESTS 20 358 11366400 1400
57293207 nealzane C July 18, 2019, 5:45 p.m. OK PyPy 3 TESTS 20 358 12902400 1400
57272860 RusherRG C July 18, 2019, 9:34 a.m. OK PyPy 3 TESTS 20 358 12902400 1400
57253250 blue_eyes C July 18, 2019, 1:05 a.m. OK PyPy 3 TESTS 20 358 12902400 1400
58500225 tushartyagi8750 C Aug. 9, 2019, 1:56 p.m. OK PyPy 3 TESTS 20 358 13107200 1400
57296654 ngsm C July 18, 2019, 7:41 p.m. OK PyPy 3 TESTS 20 358 13107200 1400
64309986 Akkk1881 C Nov. 5, 2019, 12:28 p.m. OK PyPy 3 TESTS 20 358 17817600 1400
67196798 jasonsebastian C Dec. 19, 2019, 9:23 a.m. OK PyPy 3 TESTS 20 358 18636800 1400
57417777 Helli.code C July 20, 2019, 5:49 p.m. OK Python 2 TESTS 20 358 11059200 1400
58259586 DSP-friendly C Aug. 4, 2019, 11:39 a.m. OK Python 2 TESTS 20 467 12492800 1400
57297062 mphp C July 18, 2019, 7:56 p.m. OK Python 3 TESTS 20 218 11673600 1400
60443865 Mariam_94 C Sept. 12, 2019, 1:28 p.m. OK Python 3 TESTS 20 218 12902400 1400
57336342 Soumya_123 C July 19, 2019, 4:15 p.m. OK Python 3 TESTS 20 233 11571200 1400
59915979 chgliu C Sept. 2, 2019, 7:13 p.m. OK Python 3 TESTS 20 233 11673600 1400
57492011 Annvv C July 22, 2019, 7:24 a.m. OK Python 3 TESTS 20 234 11673600 1400
62940824 gswetha1713 C Oct. 19, 2019, 3:32 p.m. OK Python 3 TESTS 20 248 11571200 1400
57309782 nani_7 C July 19, 2019, 5:58 a.m. OK Python 3 TESTS 20 248 11571200 1400
57240709 eugalt C July 17, 2019, 5:35 p.m. OK Python 3 TESTS 20 248 11571200 1400
57327196 suika_p C July 19, 2019, 12:38 p.m. OK Python 3 TESTS 20 248 11673600 1400
57245291 extremator95 C July 17, 2019, 7:05 p.m. OK Python 3 TESTS 20 248 11673600 1400
57277246 rinzu C July 18, 2019, 11:22 a.m. OK Ruby TESTS 20 373 52633600 1400
57282099 Trunikruth C July 18, 2019, 1:08 p.m. OK Ruby TESTS 20 389 22118400 1400
57993110 Lancern C July 30, 2019, 2 p.m. OK Rust TESTS 20 31 2457600 1400
57339969 kobae964 C July 19, 2019, 5:59 p.m. OK Rust TESTS 20 140 1945600 1400

remove filters

Back to search problems