Codeforces Round 585 (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
1215 Codeforces Round 585 (Div. 2) FINISHED False 7200 168895487 Sept. 15, 2019, 10:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13554 ) B The Number of Products PROGRAMMING combinatorics dp implementation 1500

B'You are given a sequence a_1, a_2, ... , a_n consisting of n non-zero integers (i.e. a_i ne 0 ). You have to calculate two following values: The first line contains one integer n (1 <= n <= 2 cdot 10^{5}) -- the number of elements in the sequence. The second line contains n integers a_1, a_2, ... , a_n (-10^{9} <= a_i <= 10^{9}; a_i neq 0) -- the elements of the sequence. Print two integers -- the number of subsegments with negative product and the number of subsegments with positive product, respectively. '...

Tutorials

Codeforces Round #585 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
60676756 ruban B Sept. 16, 2019, 12:40 p.m. OK Delphi TESTS 63 93 204390400 1500
60660278 dblark B Sept. 16, 2019, 4:11 a.m. OK FPC TESTS 63 77 1843200 1500
60630627 zyenz123 B Sept. 15, 2019, 12:17 p.m. OK FPC TESTS 63 78 3993600 1500
60619808 dblark B Sept. 15, 2019, 11:18 a.m. OK FPC TESTS 63 93 1843200 1500
60621437 LaSWeeG B Sept. 15, 2019, 11:26 a.m. OK FPC TESTS 63 93 3174400 1500
60661268 yugao B Sept. 16, 2019, 5:03 a.m. OK GNU C11 TESTS 63 46 0 1500
60684409 zzkkk B Sept. 16, 2019, 2:55 p.m. OK GNU C11 TESTS 63 61 0 1500
61516321 alshumskij B Sept. 29, 2019, 5:38 p.m. OK GNU C11 TESTS 63 62 0 1500
60614156 tiger0132 B Sept. 15, 2019, 10:55 a.m. OK GNU C11 TESTS 63 62 0 1500
60620013 jschr B Sept. 15, 2019, 11:19 a.m. OK GNU C11 TESTS 63 62 0 1500
60667840 TGTSTTG B Sept. 16, 2019, 9:06 a.m. OK GNU C11 TESTS 63 62 0 1500
61515113 alshumskij B Sept. 29, 2019, 5:15 p.m. OK GNU C11 TESTS 63 62 0 1500
61515315 alshumskij B Sept. 29, 2019, 5:19 p.m. OK GNU C11 TESTS 63 62 0 1500
61515352 alshumskij B Sept. 29, 2019, 5:19 p.m. OK GNU C11 TESTS 63 62 0 1500
60646532 Luxon B Sept. 15, 2019, 5:22 p.m. OK GNU C11 TESTS 63 62 204800 1500
60960429 wmz177 B Sept. 21, 2019, 5:08 a.m. OK GNU C++11 TESTS 63 31 0 1500
62355070 XyzL B Oct. 11, 2019, 10:42 a.m. OK GNU C++11 TESTS 63 31 0 1500
61747874 vjudge2 B Oct. 3, 2019, 1:37 a.m. OK GNU C++11 TESTS 63 31 0 1500
61747871 DXTL666 B Oct. 3, 2019, 1:37 a.m. OK GNU C++11 TESTS 63 31 0 1500
60729302 bdcaknoip B Sept. 17, 2019, 3:05 p.m. OK GNU C++11 TESTS 63 31 0 1500
60706649 luogu_bot4 B Sept. 17, 2019, 5:41 a.m. OK GNU C++11 TESTS 63 31 0 1500
60706622 paget B Sept. 17, 2019, 5:40 a.m. OK GNU C++11 TESTS 63 31 0 1500
60678507 AutumnKite B Sept. 16, 2019, 1:14 p.m. OK GNU C++11 TESTS 63 31 0 1500
60671339 luogu_bot4 B Sept. 16, 2019, 10:49 a.m. OK GNU C++11 TESTS 63 31 0 1500
60660966 DouglasConnor B Sept. 16, 2019, 4:49 a.m. OK GNU C++11 TESTS 63 31 0 1500
61042655 wleung_bvg B Sept. 22, 2019, 2:01 a.m. OK GNU C++14 TESTS 63 31 921600 1500
60680130 vishnu_m B Sept. 16, 2019, 1:40 p.m. OK GNU C++14 TESTS 63 46 0 1500
60611321 tokitsukaze B Sept. 15, 2019, 10:46 a.m. OK GNU C++14 TESTS 63 46 102400 1500
60609957 ioyeoa B Sept. 15, 2019, 10:42 a.m. OK GNU C++14 TESTS 63 46 819200 1500
61945977 Linkus B Oct. 5, 2019, 11:12 p.m. OK GNU C++14 TESTS 63 46 1228800 1500
60611521 liouzhou_101 B Sept. 15, 2019, 10:47 a.m. OK GNU C++14 TESTS 63 46 2867200 1500
60673592 nirjhorJU B Sept. 16, 2019, 11:42 a.m. OK GNU C++14 TESTS 63 62 0 1500
61832274 fearlessgao B Oct. 4, 2019, 6:54 a.m. OK GNU C++14 TESTS 63 62 0 1500
61051811 Tbuji B Sept. 22, 2019, 6:45 a.m. OK GNU C++14 TESTS 63 62 0 1500
62165174 aioverflow B Oct. 8, 2019, 7:50 p.m. OK GNU C++14 TESTS 63 62 819200 1500
60683099 SleepZzz B Sept. 16, 2019, 2:35 p.m. OK GNU C++17 TESTS 63 31 2867200 1500
60703472 nickluo B Sept. 17, 2019, 2:59 a.m. OK GNU C++17 TESTS 63 46 512000 1500
60667608 i_lower B Sept. 16, 2019, 9 a.m. OK GNU C++17 TESTS 63 46 1536000 1500
60616890 ygy B Sept. 15, 2019, 11:05 a.m. OK GNU C++17 TESTS 63 46 2662400 1500
60702056 Mynesis B Sept. 17, 2019, 1:39 a.m. OK GNU C++17 TESTS 63 61 0 1500
66084926 lijiatu B Dec. 1, 2019, 3:47 a.m. OK GNU C++17 TESTS 63 62 0 1500
60728445 EvolveZ B Sept. 17, 2019, 2:47 p.m. OK GNU C++17 TESTS 63 62 0 1500
62563771 vjudge4 B Oct. 14, 2019, 12:42 p.m. OK GNU C++17 TESTS 63 62 0 1500
62564002 vjudge2 B Oct. 14, 2019, 12:46 p.m. OK GNU C++17 TESTS 63 62 0 1500
62865564 lijiatu B Oct. 18, 2019, 12:07 p.m. OK GNU C++17 TESTS 63 62 0 1500
60695385 smtcoder B Sept. 16, 2019, 7:23 p.m. OK Go TESTS 63 202 0 1500
60624200 gouthamkn B Sept. 15, 2019, 11:40 a.m. OK Go TESTS 63 217 8396800 1500
61872617 _Ivana B Oct. 4, 2019, 6:48 p.m. OK Haskell TESTS 63 655 12697600 1500
60779612 IslamOmar B Sept. 18, 2019, 3:47 p.m. OK Haskell TESTS 63 748 54681600 1500
61991220 bamzy B Oct. 6, 2019, 3:08 p.m. OK Haskell TESTS 63 935 91443200 1500
64888737 potatmen B Nov. 14, 2019, 1:59 p.m. OK Java 11 TESTS 63 265 10956800 1500
65708519 machhra B Nov. 25, 2019, 1:28 p.m. OK Java 11 TESTS 63 280 11161600 1500
69190710 ashanksingh1997 B Jan. 20, 2020, 1:25 p.m. OK Java 11 TESTS 63 467 0 1500
69914252 CodAR B Jan. 31, 2020, 4:19 p.m. OK Java 11 TESTS 63 530 0 1500
63951833 mbfeci B Oct. 31, 2019, 9:54 p.m. OK Java 8 TESTS 63 124 0 1500
62112668 cribabby B Oct. 8, 2019, 12:36 p.m. OK Java 8 TESTS 63 124 0 1500
60914980 OneClickAC B Sept. 20, 2019, 7:45 a.m. OK Java 8 TESTS 63 124 0 1500
60839057 gahou B Sept. 19, 2019, 10:11 a.m. OK Java 8 TESTS 63 124 0 1500
60660643 atharvat77 B Sept. 16, 2019, 4:31 a.m. OK Java 8 TESTS 63 124 0 1500
60650375 aman28rwt B Sept. 15, 2019, 7 p.m. OK Java 8 TESTS 63 124 0 1500
61716596 Shady51 B Oct. 2, 2019, 12:44 p.m. OK Java 8 TESTS 63 139 0 1500
60626211 cis_pie B Sept. 15, 2019, 11:51 a.m. OK Java 8 TESTS 63 139 0 1500
65704394 nj_hyper B Nov. 25, 2019, 12:04 p.m. OK Java 8 TESTS 63 140 0 1500
60709881 akman10 B Sept. 17, 2019, 7:40 a.m. OK Java 8 TESTS 63 140 0 1500
60662469 sjx233 B Sept. 16, 2019, 5:55 a.m. OK JavaScript TESTS 63 187 18534400 1500
60618399 sjx233 B Sept. 15, 2019, 11:12 a.m. OK JavaScript TESTS 63 202 18534400 1500
60664552 Spheniscine B Sept. 16, 2019, 7:15 a.m. OK Kotlin TESTS 63 171 10649600 1500
60664220 Spheniscine B Sept. 16, 2019, 7:03 a.m. OK Kotlin TESTS 63 171 10649600 1500
60664480 Spheniscine B Sept. 16, 2019, 7:12 a.m. OK Kotlin TESTS 63 186 10649600 1500
60655523 Black_Fregat B Sept. 15, 2019, 10:52 p.m. OK Kotlin TESTS 63 374 17408000 1500
60643549 Vesbat B Sept. 15, 2019, 4:16 p.m. OK Kotlin TESTS 63 374 19353600 1500
60640848 Ahmadjon B Sept. 15, 2019, 3:21 p.m. OK Kotlin TESTS 63 389 17305600 1500
60730354 lok52 B Sept. 17, 2019, 3:28 p.m. OK Kotlin TESTS 63 405 17408000 1500
60620759 Bobko B Sept. 15, 2019, 11:22 a.m. OK Kotlin TESTS 63 405 17408000 1500
60618956 pavlo.liapota B Sept. 15, 2019, 11:14 a.m. OK Kotlin TESTS 63 405 17408000 1500
60627818 enslinmike B Sept. 15, 2019, noon OK Kotlin TESTS 63 436 18739200 1500
61840903 og.kostya B Oct. 4, 2019, 9:37 a.m. OK Mono C# TESTS 63 77 819200 1500
62527478 nastya1199 B Oct. 13, 2019, 5:54 p.m. OK Mono C# TESTS 63 140 25907200 1500
61119035 Salatik231166 B Sept. 23, 2019, 1:49 p.m. OK Mono C# TESTS 63 140 35020800 1500
60626511 Giangvp B Sept. 15, 2019, 11:52 a.m. OK Mono C# TESTS 63 155 35020800 1500
60655695 Matsuev B Sept. 15, 2019, 11:06 p.m. OK Mono C# TESTS 63 156 26009600 1500
60618658 plasma-effect B Sept. 15, 2019, 11:13 a.m. OK Mono C# TESTS 63 171 32870400 1500
60618935 omikad B Sept. 15, 2019, 11:14 a.m. OK Mono C# TESTS 63 171 33792000 1500
62558270 vjudge2 B Oct. 14, 2019, 11:15 a.m. OK MS C++ TESTS 63 61 0 1500
62416045 vjudge1 B Oct. 12, 2019, 11:38 a.m. OK MS C++ TESTS 63 61 0 1500
60715350 hamed053 B Sept. 17, 2019, 10:22 a.m. OK MS C++ TESTS 63 61 0 1500
62558446 vjudge3 B Oct. 14, 2019, 11:18 a.m. OK MS C++ TESTS 63 61 0 1500
62620805 vjudge2 B Oct. 15, 2019, 12:48 p.m. OK MS C++ TESTS 63 61 0 1500
65623214 vjudge2 B Nov. 24, 2019, 6:59 a.m. OK MS C++ TESTS 63 61 3379200 1500
69278542 vjudge1 B Jan. 22, 2020, 4:23 a.m. OK MS C++ TESTS 63 62 0 1500
62559650 vjudge5 B Oct. 14, 2019, 11:37 a.m. OK MS C++ TESTS 63 62 0 1500
62781741 vjudge4 B Oct. 17, 2019, 1:06 p.m. OK MS C++ TESTS 63 62 0 1500
63128730 vjudge4 B Oct. 22, 2019, 1:33 p.m. OK MS C++ TESTS 63 62 0 1500
61697422 vjudge1 B Oct. 2, 2019, 7:23 a.m. OK MS C++ 2017 TESTS 63 78 0 1500
66031558 vjudge1 B Nov. 30, 2019, 10:20 a.m. OK MS C++ 2017 TESTS 63 78 0 1500
61826685 Laaahu_ B Oct. 4, 2019, 5:04 a.m. OK MS C++ 2017 TESTS 63 78 819200 1500
68899232 vjudge2 B Jan. 16, 2020, 5:32 a.m. OK MS C++ 2017 TESTS 63 78 4812800 1500
60615540 egardoz01 B Sept. 15, 2019, 11 a.m. OK MS C++ 2017 TESTS 63 93 0 1500
60675289 swbdriviedriveme B Sept. 16, 2019, 12:13 p.m. OK MS C++ 2017 TESTS 63 93 0 1500
60750186 luengjon B Sept. 18, 2019, 5:44 a.m. OK MS C++ 2017 TESTS 63 93 0 1500
60845074 F91WoDaGe B Sept. 19, 2019, 12:17 p.m. OK MS C++ 2017 TESTS 63 93 0 1500
61752533 vjudge5 B Oct. 3, 2019, 4:07 a.m. OK MS C++ 2017 TESTS 63 93 0 1500
68906213 vjudge3 B Jan. 16, 2020, 6:51 a.m. OK MS C++ 2017 TESTS 63 93 0 1500
62372484 soumyasarkar1998 B Oct. 11, 2019, 4:12 p.m. OK PyPy 2 TESTS 63 186 13824000 1500
60629135 sakito B Sept. 15, 2019, 12:08 p.m. OK PyPy 2 TESTS 63 202 12492800 1500
60614205 zdbtxdy B Sept. 15, 2019, 10:55 a.m. OK PyPy 2 TESTS 63 202 12492800 1500
60736726 shehebe B Sept. 17, 2019, 5:52 p.m. OK PyPy 2 TESTS 63 202 12800000 1500
60612753 alexwice B Sept. 15, 2019, 10:50 a.m. OK PyPy 2 TESTS 63 202 13414400 1500
60631178 Mukundan314 B Sept. 15, 2019, 12:20 p.m. OK PyPy 2 TESTS 63 218 17920000 1500
60632633 raj1307 B Sept. 15, 2019, 12:28 p.m. OK PyPy 2 TESTS 63 218 18227200 1500
60624756 Ceicei B Sept. 15, 2019, 11:43 a.m. OK PyPy 2 TESTS 63 233 14336000 1500
60627070 anshuman16423 B Sept. 15, 2019, 11:56 a.m. OK PyPy 2 TESTS 63 249 12800000 1500
66638590 yumtam B Dec. 11, 2019, 1:52 p.m. OK PyPy 2 TESTS 63 374 39628800 1500
60693241 maramsumanth B Sept. 16, 2019, 6:17 p.m. OK PyPy 3 TESTS 63 280 23449600 1500
63947242 eman98 patrick.sava B Oct. 31, 2019, 7:27 p.m. OK PyPy 3 TESTS 63 342 19046400 1500
65025439 lke_python B Nov. 15, 2019, 7:25 a.m. OK PyPy 3 TESTS 63 343 19148800 1500
65734491 kevinwinatamichael B Nov. 26, 2019, 7:03 a.m. OK PyPy 3 TESTS 63 343 22630400 1500
68225022 manish.17 B Jan. 5, 2020, 6:46 a.m. OK PyPy 3 TESTS 63 358 19251200 1500
68860464 gaidash B Jan. 15, 2020, 11:55 a.m. OK PyPy 3 TESTS 63 358 19865600 1500
60757004 vishhesh B Sept. 18, 2019, 9:24 a.m. OK PyPy 3 TESTS 63 374 16793600 1500
60834361 shivam_hbtu B Sept. 19, 2019, 8:21 a.m. OK PyPy 3 TESTS 63 374 16793600 1500
60643689 FireBird23 B Sept. 15, 2019, 4:19 p.m. OK PyPy 3 TESTS 63 374 16793600 1500
60683033 thanhnam1998 B Sept. 16, 2019, 2:33 p.m. OK PyPy 3 TESTS 63 374 16896000 1500
60610416 nwi B Sept. 15, 2019, 10:43 a.m. OK Python 2 TESTS 63 312 11468800 1500
62423808 muhitsarwar B Oct. 12, 2019, 1:43 p.m. OK Python 2 TESTS 63 326 12185600 1500
60669494 elistark B Sept. 16, 2019, 9:55 a.m. OK Python 2 TESTS 63 343 11264000 1500
60610891 psaini B Sept. 15, 2019, 10:45 a.m. OK Python 2 TESTS 63 358 11264000 1500
60666131 groupbuilder B Sept. 16, 2019, 8:09 a.m. OK Python 2 TESTS 63 389 12185600 1500
60640041 FlyingBag65 B Sept. 15, 2019, 3:09 p.m. OK Python 3 TESTS 63 218 17203200 1500
60647742 LintuStorm B Sept. 15, 2019, 5:49 p.m. OK Python 3 TESTS 63 233 16691200 1500
60691231 V_R B Sept. 16, 2019, 5:25 p.m. OK Python 3 TESTS 63 248 17510400 1500
60690152 maslov.alex1580 B Sept. 16, 2019, 5 p.m. OK Python 3 TESTS 63 249 14028800 1500
60621697 nagitaosu B Sept. 15, 2019, 11:27 a.m. OK Python 3 TESTS 63 249 16691200 1500
60732078 kinte B Sept. 17, 2019, 4:05 p.m. OK Python 3 TESTS 63 249 16691200 1500
60622054 Gaurav1 B Sept. 15, 2019, 11:29 a.m. OK Python 3 TESTS 63 249 18534400 1500
61032516 omargamal8 B Sept. 21, 2019, 6:16 p.m. OK Python 3 TESTS 63 264 16691200 1500
60612973 TheManTheMythTheLegend B Sept. 15, 2019, 10:51 a.m. OK Python 3 TESTS 63 264 17305600 1500
62169936 nealzane B Oct. 8, 2019, 11:34 p.m. OK Python 3 TESTS 63 265 13721600 1500
66167514 erica3179 B Dec. 2, 2019, 8:28 a.m. OK Ruby TESTS 63 312 35123200 1500
60623745 super_hook_girl_lover B Sept. 15, 2019, 11:38 a.m. OK Ruby TESTS 63 389 35225600 1500
60619908 sansen B Sept. 15, 2019, 11:18 a.m. OK Rust TESTS 63 62 6553600 1500
60654759 ValenKof B Sept. 15, 2019, 9:59 p.m. OK Rust TESTS 63 62 11161600 1500
60616044 yudedako B Sept. 15, 2019, 11:02 a.m. OK Scala TESTS 63 607 19251200 1500

remove filters

Back to search problems