Codeforces Round 600 (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
1253 Codeforces Round 600 (Div. 2) FINISHED False 7200 163524287 Nov. 16, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11265 ) B Silly Mistake PROGRAMMING greedy implementation 1400

B"The Central Company has an office with a sophisticated security system. There are 10^6 employees, numbered from 1 to 10^6 . The security system logs entrances and departures. The entrance of the i -th employee is denoted by the integer i , while the departure of the i -th employee is denoted by the integer -i . The company has some strict rules about access to its office: Any array of events satisfying these conditions is called a valid day. Some examples of valid or invalid days: There are n events a_1, a_2, ldots, a_n , in the order they occurred. This array corresponds to one or more consecutive days. The system administrator erased the dates of events by mistake, but he didn't change the order of the events. You must partition (to cut) the array a of events into contiguous subarrays, which must represent non-empty valid days (or say that it's impossible). Each array element should belong to exactly one contiguous subarray of a partition. Each contiguous subarray of a partition should be a valid day. For example, if n=8 and a=[1, -1, 1, 2, -1, -2, 3, -3] then he can partition it into two contiguous subarrays which are valid days: a = [1, -1~ boldsymbol{|}~ 1, 2, -1, -2, 3, -3] . Help the administrator to partition the given array a in the required way or report that it is impossible to do. Find any required partition, you should not minimize or maximize the number of parts. The first line contains a single integer n ( 1 <= n <= 10^5 ). The second line contains n integers a_1, a_2, ldots, a_n ( -10^6 <= a_i <= 10^6 and a_i neq 0 ). If there is no valid partition, print -1 . Otherwise, print any valid partition in the following format: If there are many valid solutions, you can print any of them. You don't have to minimize nor maximize the number of days. In the first example, the whole array is a valid day. In the second example, one "...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
65220626 Alvaro21 B Nov. 16, 2019, 8:39 p.m. OK Clang++17 Diagnostics TESTS 43 62 7475200 1400
65240741 KingsNeverDie B Nov. 17, 2019, 8:41 a.m. OK Clang++17 Diagnostics TESTS 43 124 14848000 1400
67461307 fenofista B Dec. 23, 2019, 9:16 a.m. OK GNU C11 TESTS 43 155 4812800 1400
66208385 God_particle B Dec. 3, 2019, 5:07 a.m. OK GNU C11 TESTS 43 171 2560000 1400
65216954 kaiboy B Nov. 16, 2019, 6:58 p.m. OK GNU C11 TESTS 43 171 2764800 1400
65247923 samay_kothari B Nov. 17, 2019, 11:05 a.m. OK GNU C11 TESTS 43 171 16486400 1400
65266853 akash19jain B Nov. 17, 2019, 5:30 p.m. OK GNU C11 TESTS 43 186 5632000 1400
69060272 Sanidhya_30 B Jan. 18, 2020, 4:13 p.m. OK GNU C11 TESTS 43 187 4812800 1400
67461640 fenofista B Dec. 23, 2019, 9:24 a.m. OK GNU C11 TESTS 43 187 4812800 1400
65871224 sartajekram B Nov. 27, 2019, 3:55 p.m. OK GNU C11 TESTS 43 187 16384000 1400
69116070 abcd227 B Jan. 19, 2020, 2:07 p.m. OK GNU C11 TESTS 43 202 17612800 1400
67514043 Trinadh724 B Dec. 24, 2019, 10:11 a.m. OK GNU C11 TESTS 43 202 17612800 1400
65713665 Youngsc B Nov. 25, 2019, 3:30 p.m. OK GNU C++11 TESTS 43 31 2764800 1400
65264277 KJL_is_suck B Nov. 17, 2019, 4:13 p.m. OK GNU C++11 TESTS 43 31 3174400 1400
65252141 Bill_Yang B Nov. 17, 2019, 12:21 p.m. OK GNU C++11 TESTS 43 31 4505600 1400
65228372 KanuaK B Nov. 17, 2019, 3:22 a.m. OK GNU C++11 TESTS 43 31 4608000 1400
65422992 2016c01 B Nov. 20, 2019, 9:39 a.m. OK GNU C++11 TESTS 43 31 4812800 1400
65217952 wyyxhjth B Nov. 16, 2019, 7:22 p.m. OK GNU C++11 TESTS 43 31 5427200 1400
65497938 vjudge1 B Nov. 21, 2019, 5:24 p.m. OK GNU C++11 TESTS 43 31 5529600 1400
65335447 echozhou B Nov. 19, 2019, 8:43 a.m. OK GNU C++11 TESTS 43 31 5529600 1400
65409852 EncodeTalker B Nov. 20, 2019, 3:21 a.m. OK GNU C++11 TESTS 43 31 8601600 1400
65224900 wang_sj B Nov. 17, 2019, 12:47 a.m. OK GNU C++11 TESTS 43 31 8806400 1400
65235971 BeNoble B Nov. 17, 2019, 7:14 a.m. OK GNU C++14 TESTS 43 31 10854400 1400
65434049 pmarecki B Nov. 20, 2019, 12:53 p.m. OK GNU C++14 TESTS 43 46 1228800 1400
65219280 avid_avi B Nov. 16, 2019, 7:57 p.m. OK GNU C++14 TESTS 43 46 1740800 1400
65228726 trueBatty B Nov. 17, 2019, 3:35 a.m. OK GNU C++14 TESTS 43 46 1740800 1400
65284195 daminisherathiya B Nov. 18, 2019, 7:26 a.m. OK GNU C++14 TESTS 43 46 1740800 1400
65416548 HighOnC B Nov. 20, 2019, 7:08 a.m. OK GNU C++14 TESTS 43 46 1843200 1400
66041457 Starlett B Nov. 30, 2019, 1:40 p.m. OK GNU C++14 TESTS 43 46 1843200 1400
65211795 baohiep B Nov. 16, 2019, 6:06 p.m. OK GNU C++14 TESTS 43 46 2048000 1400
65211001 liyh98 B Nov. 16, 2019, 5:56 p.m. OK GNU C++14 TESTS 43 46 2048000 1400
66825361 ScaryTerry B Dec. 14, 2019, 8:46 a.m. OK GNU C++14 TESTS 43 46 2150400 1400
66642974 Soroush. B Dec. 11, 2019, 3:30 p.m. OK GNU C++17 TESTS 43 31 2355200 1400
66583833 hing_ju B Dec. 10, 2019, 10:25 a.m. OK GNU C++17 TESTS 43 31 2355200 1400
65300213 Yzm007 B Nov. 18, 2019, 12:58 p.m. OK GNU C++17 TESTS 43 31 10035200 1400
68054272 ExC0MMUNICAD0 B Jan. 1, 2020, 8:59 p.m. OK GNU C++17 TESTS 43 46 1228800 1400
65293982 Sagebrush B Nov. 18, 2019, 10:47 a.m. OK GNU C++17 TESTS 43 46 1228800 1400
68054388 ExC0MMUNICAD0 B Jan. 1, 2020, 9:05 p.m. OK GNU C++17 TESTS 43 46 1228800 1400
65478700 martin0327 B Nov. 21, 2019, 10:59 a.m. OK GNU C++17 TESTS 43 46 1638400 1400
66521333 abdelrahman____tarek B Dec. 8, 2019, 10:57 p.m. OK GNU C++17 TESTS 43 46 1638400 1400
65702376 cdh981009 B Nov. 25, 2019, 11:17 a.m. OK GNU C++17 TESTS 43 46 1638400 1400
65428061 airforceone747 B Nov. 20, 2019, 11:16 a.m. OK GNU C++17 TESTS 43 46 1638400 1400
68064553 caidodo0_0 B Jan. 2, 2020, 6:53 a.m. OK Go TESTS 43 108 0 1400
68064577 u1s1reallycai B Jan. 2, 2020, 6:54 a.m. OK Go TESTS 43 108 0 1400
65257126 jegfault B Nov. 17, 2019, 1:48 p.m. OK Haskell TESTS 43 452 18022400 1400
65338869 lpls1 B Nov. 19, 2019, 10:09 a.m. OK Java 11 TESTS 43 202 6553600 1400
65216377 davisrollman B Nov. 16, 2019, 6:44 p.m. OK Java 11 TESTS 43 233 0 1400
65229206 justlotw B Nov. 17, 2019, 3:53 a.m. OK Java 11 TESTS 43 233 9216000 1400
65440293 machhra B Nov. 20, 2019, 2:08 p.m. OK Java 11 TESTS 43 234 0 1400
65320439 findim B Nov. 18, 2019, 7:26 p.m. OK Java 11 TESTS 43 234 102400 1400
65223020 ankyy_0103 B Nov. 16, 2019, 10:29 p.m. OK Java 11 TESTS 43 249 0 1400
65222180 Anonymous B Nov. 16, 2019, 9:42 p.m. OK Java 11 TESTS 43 249 0 1400
69934069 alankritanand001 B Feb. 1, 2020, 2:31 a.m. OK Java 11 TESTS 43 264 819200 1400
65332350 potatmen B Nov. 19, 2019, 7:01 a.m. OK Java 11 TESTS 43 295 716800 1400
65215823 Dukkha B Nov. 16, 2019, 6:31 p.m. OK Java 11 TESTS 43 358 0 1400
65215058 avijit_agarwal B Nov. 16, 2019, 6:17 p.m. OK Java 8 TESTS 43 124 0 1400
65221141 bluesky111 B Nov. 16, 2019, 8:58 p.m. OK Java 8 TESTS 43 124 3891200 1400
65257412 osama.bmaq B Nov. 17, 2019, 1:53 p.m. OK Java 8 TESTS 43 139 4096000 1400
66083062 jeoj B Dec. 1, 2019, 2:07 a.m. OK Java 8 TESTS 43 140 0 1400
65717911 xwchen B Nov. 25, 2019, 5:29 p.m. OK Java 8 TESTS 43 140 0 1400
65557990 RootTwoOverTwelve B Nov. 23, 2019, 12:23 a.m. OK Java 8 TESTS 43 140 0 1400
65315472 In_The_Name_Of_Love B Nov. 18, 2019, 5:06 p.m. OK Java 8 TESTS 43 140 0 1400
65251999 luchy0120 B Nov. 17, 2019, 12:18 p.m. OK Java 8 TESTS 43 140 0 1400
65250916 beroul B Nov. 17, 2019, 11:59 a.m. OK Java 8 TESTS 43 140 3993600 1400
65513506 niteshgowda B Nov. 22, 2019, 5:36 a.m. OK Java 8 TESTS 43 140 4198400 1400
65259322 Spheniscine B Nov. 17, 2019, 2:30 p.m. OK Kotlin TESTS 43 171 0 1400
65326721 shenqi16 B Nov. 19, 2019, 2:16 a.m. OK Kotlin TESTS 43 217 204800 1400
65274619 Black_Fregat B Nov. 17, 2019, 10:56 p.m. OK Kotlin TESTS 43 280 3481600 1400
65219844 AsuraPro B Nov. 16, 2019, 8:14 p.m. OK Kotlin TESTS 43 295 3379200 1400
65700363 ivanshubin B Nov. 25, 2019, 10:29 a.m. OK Kotlin TESTS 43 327 204800 1400
65262053 predator B Nov. 17, 2019, 3:23 p.m. OK Kotlin TESTS 43 389 3379200 1400
65263723 Ash3008Kr B Nov. 17, 2019, 3:57 p.m. OK Kotlin TESTS 43 405 0 1400
65236767 m1_k3 B Nov. 17, 2019, 7:31 a.m. OK Mono C# TESTS 43 93 8499200 1400
65261157 azukun B Nov. 17, 2019, 3:05 p.m. OK Mono C# TESTS 43 93 20684800 1400
69842018 hibatibati B Jan. 30, 2020, 1:25 p.m. OK Mono C# TESTS 43 108 24268800 1400
65211937 ansergeyg B Nov. 16, 2019, 6:08 p.m. OK Mono C# TESTS 43 202 14540800 1400
65445671 Tan42 B Nov. 20, 2019, 3:53 p.m. OK Mono C# TESTS 43 218 13004800 1400
65475495 Kosen___ B Nov. 21, 2019, 9:54 a.m. OK Mono C# TESTS 43 218 18739200 1400
65229909 hyzhangzhy B Nov. 17, 2019, 4:21 a.m. OK Mono C# TESTS 43 233 18124800 1400
65480093 nastya1199 B Nov. 21, 2019, 11:24 a.m. OK Mono C# TESTS 43 264 18841600 1400
65430612 vjudge1 B Nov. 20, 2019, 11:57 a.m. OK MS C++ TESTS 43 46 18432000 1400
65534275 vjudge5 B Nov. 22, 2019, 1:36 p.m. OK MS C++ TESTS 43 62 8806400 1400
65533967 vjudge1 B Nov. 22, 2019, 1:29 p.m. OK MS C++ TESTS 43 62 8908800 1400
66777726 vjudge1 B Dec. 13, 2019, 10:46 a.m. OK MS C++ TESTS 43 62 29900800 1400
65532798 vjudge5 B Nov. 22, 2019, 1:04 p.m. OK MS C++ TESTS 43 78 2560000 1400
65520904 vjudge2 B Nov. 22, 2019, 8:17 a.m. OK MS C++ TESTS 43 78 4812800 1400
65263860 kinanrod B Nov. 17, 2019, 4:01 p.m. OK MS C++ TESTS 43 93 2662400 1400
65374263 h657173222 B Nov. 19, 2019, 3:41 p.m. OK MS C++ TESTS 43 93 4812800 1400
66783852 vjudge4 B Dec. 13, 2019, 12:58 p.m. OK MS C++ TESTS 43 109 6144000 1400
65463994 lannh2207 B Nov. 21, 2019, 4:39 a.m. OK MS C++ TESTS 43 249 2560000 1400
65296378 cheng222 B Nov. 18, 2019, 11:40 a.m. OK MS C++ 2017 TESTS 43 61 4710400 1400
65204434 Sund0g B Nov. 16, 2019, 4:21 p.m. OK MS C++ 2017 TESTS 43 62 4812800 1400
68976550 scorpiowf B Jan. 17, 2020, 9:03 a.m. OK MS C++ 2017 TESTS 43 62 14028800 1400
66182795 Laaahu_ B Dec. 2, 2019, 1:25 p.m. OK MS C++ 2017 TESTS 43 62 16384000 1400
65256782 ICEY777 B Nov. 17, 2019, 1:41 p.m. OK MS C++ 2017 TESTS 43 78 6451200 1400
65224325 Phantom_ B Nov. 17, 2019, 12:04 a.m. OK MS C++ 2017 TESTS 43 93 1638400 1400
65595131 Tiko B Nov. 23, 2019, 3:34 p.m. OK MS C++ 2017 TESTS 43 93 2150400 1400
68717524 Ah176 B Jan. 13, 2020, 3 p.m. OK MS C++ 2017 TESTS 43 93 5017600 1400
65603552 vjudge1 B Nov. 23, 2019, 7:18 p.m. OK MS C++ 2017 TESTS 43 93 83353600 1400
65349793 UAV B Nov. 19, 2019, 1:55 p.m. OK MS C++ 2017 TESTS 43 108 8294400 1400
65221175 mayakin B Nov. 16, 2019, 8:59 p.m. OK PHP TESTS 43 124 12185600 1400
65210372 raj1307 B Nov. 16, 2019, 5:49 p.m. OK PyPy 2 TESTS 43 155 10137600 1400
65556516 yumtam B Nov. 22, 2019, 10:23 p.m. OK PyPy 2 TESTS 43 171 10035200 1400
65280461 zdbtxdy B Nov. 18, 2019, 5:18 a.m. OK PyPy 2 TESTS 43 171 10342400 1400
65470936 SoSooding B Nov. 21, 2019, 8:22 a.m. OK PyPy 2 TESTS 43 561 10240000 1400
65210440 a11b11c11 B Nov. 16, 2019, 5:49 p.m. OK PyPy 2 TESTS 43 592 10240000 1400
68038537 bavesh B Jan. 1, 2020, 1:15 p.m. OK PyPy 3 TESTS 43 217 11161600 1400
65250546 O_Ramanujan B Nov. 17, 2019, 11:53 a.m. OK PyPy 3 TESTS 43 218 11468800 1400
65254152 aberent B Nov. 17, 2019, 12:55 p.m. OK PyPy 3 TESTS 43 218 11776000 1400
65514422 Grunger B Nov. 22, 2019, 6:08 a.m. OK PyPy 3 TESTS 43 218 11980800 1400
65457192 Myao B Nov. 20, 2019, 9:32 p.m. OK PyPy 3 TESTS 43 218 12595200 1400
68827792 Holy_ogre B Jan. 14, 2020, 8:02 p.m. OK PyPy 3 TESTS 43 218 15155200 1400
66181663 spykecb B Dec. 2, 2019, 1:01 p.m. OK PyPy 3 TESTS 43 233 10547200 1400
65324004 mattiasm83 B Nov. 18, 2019, 10:27 p.m. OK PyPy 3 TESTS 43 233 10649600 1400
68331800 nealzane B Jan. 6, 2020, 7:11 p.m. OK PyPy 3 TESTS 43 233 10854400 1400
68327235 Ravi_Napit B Jan. 6, 2020, 5:20 p.m. OK PyPy 3 TESTS 43 233 10956800 1400
65301519 bromanz B Nov. 18, 2019, 1:25 p.m. OK Python 2 TESTS 43 265 8704000 1400
65224214 aaa_bbb_ccc B Nov. 16, 2019, 11:54 p.m. OK Python 2 TESTS 43 280 5632000 1400
65202127 ashashwat B Nov. 16, 2019, 4:11 p.m. OK Python 2 TESTS 43 373 9625600 1400
65333825 orailly B Nov. 19, 2019, 7:53 a.m. OK Python 3 TESTS 43 171 7270400 1400
67524265 Prateek_Aggarwal B Dec. 24, 2019, 1:27 p.m. OK Python 3 TESTS 43 202 7987200 1400
65215648 Gaurav1 B Nov. 16, 2019, 6:28 p.m. OK Python 3 TESTS 43 218 7475200 1400
65275414 mdaw B Nov. 18, 2019, 12:14 a.m. OK Python 3 TESTS 43 218 7577600 1400
65210589 okkkk B Nov. 16, 2019, 5:51 p.m. OK Python 3 TESTS 43 218 7782400 1400
66159214 PlatinumDisco B Dec. 2, 2019, 2:41 a.m. OK Python 3 TESTS 43 218 7987200 1400
66138353 PlatinumDisco B Dec. 1, 2019, 1:15 p.m. OK Python 3 TESTS 43 218 7987200 1400
65912877 claramm B Nov. 28, 2019, 1:32 p.m. OK Python 3 TESTS 43 233 7680000 1400
65222435 Mistaek B Nov. 16, 2019, 9:55 p.m. OK Python 3 TESTS 43 233 7680000 1400
67476969 Shankhadeep B Dec. 23, 2019, 2:40 p.m. OK Python 3 TESTS 43 233 7987200 1400
65322588 httpsx B Nov. 18, 2019, 8:55 p.m. OK Ruby TESTS 43 327 25497600 1400
67406494 gearjack B Dec. 22, 2019, 6:36 a.m. OK Rust TESTS 43 31 10035200 1400
65244278 WillToPower B Nov. 17, 2019, 9:47 a.m. OK Rust TESTS 43 389 2355200 1400
65201708 techaddict B Nov. 16, 2019, 4:10 p.m. OK Scala TESTS 43 608 102400 1400

remove filters

Back to search problems