Codeforces Round 583 (Div. 1 + Div. 2, based on Olympiad of Metropolises)

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
1214 Codeforces Round 583 (Div. 1 + Div. 2, based on Olympiad of Metropolises) FINISHED False 9000 164235299 Sept. 4, 2019, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13328 ) C Bad Sequence PROGRAMMING data structures greedy 1200

B'Petya 's friends made him a birthday present -- a bracket sequence. Petya was quite disappointed with his gift, because he dreamed of correct bracket sequence, yet he told his friends nothing about his dreams and decided to fix present himself. To make everything right, Petya is going to move at most one bracket from its original place in the sequence to any other position. Reversing the bracket (e.g. turning "(" into ")" or vice versa) isn 't allowed. We remind that bracket sequence s is called correct if: For example, "(()())", "()" are correct, while ")(" and "())" are not. Help Petya to fix his birthday present and understand whether he can move one bracket so that the sequence becomes correct. First of line of input contains a single number n ( 1 <= q n <= q 200 ,000 ) -- length of the sequence which Petya received for his birthday. Second line of the input contains bracket sequence of length n , containing symbols "(" and ")". Print "Yes" if Petya can make his sequence correct moving at most one bracket. Otherwise print "No". In the first example, Petya can move first bracket to the end, thus turning the sequence into "()", which is correct bracket sequence. In the second example, there is no way to move at most one bracket so that the sequence becomes correct. In the third example, the sequence is already correct and there 's no need to move brackets. '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66315627 vjudge4 C Dec. 5, 2019, 12:59 p.m. OK Clang++17 Diagnostics TESTS 87 78 15155200 1200
60688303 maxsmril C Sept. 16, 2019, 4:17 p.m. OK Clang++17 Diagnostics TESTS 87 202 1024000 1200
60688220 maxsmril C Sept. 16, 2019, 4:15 p.m. OK Clang++17 Diagnostics TESTS 87 202 1024000 1200
62427157 sash0 C Oct. 12, 2019, 2:37 p.m. OK D TESTS 87 46 4198400 1200
60177961 Denor C Sept. 6, 2019, 3:06 p.m. OK Delphi TESTS 87 62 512000 1200
60523421 pascal_handle C Sept. 14, 2019, 9:21 a.m. OK FPC TESTS 87 31 1331200 1200
60245531 vjudge2 C Sept. 8, 2019, 2:17 a.m. OK FPC TESTS 87 31 1331200 1200
60075174 Minh2409 C Sept. 5, 2019, 12:23 p.m. OK FPC TESTS 87 31 1331200 1200
60038655 vjudge5 C Sept. 4, 2019, 5:36 p.m. OK FPC TESTS 87 31 1331200 1200
61925810 TranKha C Oct. 5, 2019, 2:35 p.m. OK FPC TESTS 87 46 1331200 1200
60959338 nikhilreddy123 C Sept. 21, 2019, 4:38 a.m. OK GNU C11 TESTS 87 31 0 1200
60029011 jschr C Sept. 4, 2019, 2:54 p.m. OK GNU C11 TESTS 87 31 0 1200
67483017 satya_chaitanya C Dec. 23, 2019, 4:33 p.m. OK GNU C11 TESTS 87 31 204800 1200
62917940 nNguyeNn C Oct. 19, 2019, 9:11 a.m. OK GNU C11 TESTS 87 31 204800 1200
61827121 vjudge4 C Oct. 4, 2019, 5:15 a.m. OK GNU C11 TESTS 87 31 204800 1200
60069627 MOHIR_MBSTU C Sept. 5, 2019, 10:40 a.m. OK GNU C11 TESTS 87 31 204800 1200
60062474 rackeh C Sept. 5, 2019, 7:37 a.m. OK GNU C11 TESTS 87 31 204800 1200
60035113 radhika.rao C Sept. 4, 2019, 4:32 p.m. OK GNU C11 TESTS 87 31 204800 1200
67782588 raresmihai01 C Dec. 28, 2019, 11:32 a.m. OK GNU C11 TESTS 87 31 204800 1200
60034127 ojasvi_26 C Sept. 4, 2019, 4:15 p.m. OK GNU C11 TESTS 87 31 204800 1200
65473943 691 C Nov. 21, 2019, 9:20 a.m. OK GNU C++11 TESTS 87 31 0 1200
62841721 zinccat C Oct. 18, 2019, 3:13 a.m. OK GNU C++11 TESTS 87 31 0 1200
62251175 lzjsy C Oct. 10, 2019, 9:19 a.m. OK GNU C++11 TESTS 87 31 0 1200
62241492 luogu_bot4 C Oct. 10, 2019, 1:57 a.m. OK GNU C++11 TESTS 87 31 0 1200
61597210 luogu_bot5 C Oct. 1, 2019, 9:20 a.m. OK GNU C++11 TESTS 87 31 0 1200
61596700 maxc3721 C Oct. 1, 2019, 9:07 a.m. OK GNU C++11 TESTS 87 31 0 1200
61596105 id9527 C Oct. 1, 2019, 8:53 a.m. OK GNU C++11 TESTS 87 31 0 1200
61596015 luogu_bot3 C Oct. 1, 2019, 8:51 a.m. OK GNU C++11 TESTS 87 31 0 1200
61595510 LuciferX07 C Oct. 1, 2019, 8:40 a.m. OK GNU C++11 TESTS 87 31 0 1200
65435013 vjudge5 C Nov. 20, 2019, 1:09 p.m. OK GNU C++11 TESTS 87 31 0 1200
60188202 007naruto C Sept. 6, 2019, 7:39 p.m. OK GNU C++14 TESTS 87 30 204800 1200
60137467 bpsingh10 C Sept. 5, 2019, 6:45 p.m. OK GNU C++14 TESTS 87 30 512000 1200
60286580 emma C Sept. 9, 2019, 3:06 a.m. OK GNU C++14 TESTS 87 30 512000 1200
60075909 .__. C Sept. 5, 2019, 12:34 p.m. OK GNU C++14 TESTS 87 30 512000 1200
60398091 codehard321 C Sept. 11, 2019, 3:40 p.m. OK GNU C++14 TESTS 87 30 512000 1200
60026756 izat C Sept. 4, 2019, 2:21 p.m. OK GNU C++14 TESTS 87 30 512000 1200
60333000 Theofratus C Sept. 10, 2019, 7:04 a.m. OK GNU C++14 TESTS 87 30 512000 1200
60067698 bitman_123 C Sept. 5, 2019, 9:49 a.m. OK GNU C++14 TESTS 87 30 614400 1200
65447760 JUSSIAR C Nov. 20, 2019, 4:40 p.m. OK GNU C++14 TESTS 87 30 716800 1200
61518354 __Enigma__ C Sept. 29, 2019, 6:22 p.m. OK GNU C++14 TESTS 87 30 921600 1200
62952573 aneeshupriser C Oct. 19, 2019, 7:16 p.m. OK GNU C++17 TESTS 87 30 0 1200
60467296 Hipo_3412 C Sept. 13, 2019, 2:44 a.m. OK GNU C++17 TESTS 87 30 409600 1200
60142015 CPSucks C Sept. 5, 2019, 8:47 p.m. OK GNU C++17 TESTS 87 30 512000 1200
60150090 dauzee C Sept. 6, 2019, 3:22 a.m. OK GNU C++17 TESTS 87 30 512000 1200
61342708 prince367 C Sept. 27, 2019, 12:25 a.m. OK GNU C++17 TESTS 87 30 512000 1200
68150547 dhiraj_7_ C Jan. 4, 2020, 6:43 a.m. OK GNU C++17 TESTS 87 30 512000 1200
60043272 kingmanas C Sept. 4, 2019, 7:12 p.m. OK GNU C++17 TESTS 87 30 512000 1200
60041527 N_0NY C Sept. 4, 2019, 6:31 p.m. OK GNU C++17 TESTS 87 30 512000 1200
60052117 moyehiacs amr_abdelazim C Sept. 5, 2019, 1:17 a.m. OK GNU C++17 TESTS 87 30 512000 1200
60060621 Kirill_from_Kazan C Sept. 5, 2019, 6:49 a.m. OK GNU C++17 TESTS 87 30 512000 1200
60740493 reanimatorzon C Sept. 17, 2019, 7:45 p.m. OK Go TESTS 87 46 0 1200
60072955 congbao C Sept. 5, 2019, 11:44 a.m. OK Go TESTS 87 577 0 1200
60331050 Silentselene C Sept. 10, 2019, 5:59 a.m. OK Go TESTS 87 608 0 1200
60072991 NewIdea C Sept. 5, 2019, 11:44 a.m. OK Go TESTS 87 623 0 1200
60201727 little_gift C Sept. 7, 2019, 6:08 a.m. OK Haskell TESTS 87 46 102400 1200
69251616 musaab C Jan. 21, 2020, 2:27 p.m. OK Java 11 TESTS 87 171 0 1200
68059437 krutarth07 C Jan. 2, 2020, 1:56 a.m. OK Java 11 TESTS 87 187 0 1200
69512362 Rangerstorm C Jan. 25, 2020, 10:53 a.m. OK Java 11 TESTS 87 202 102400 1200
69511220 alankritanand001 C Jan. 25, 2020, 10:31 a.m. OK Java 11 TESTS 87 217 102400 1200
65918733 xev1l C Nov. 28, 2019, 3:34 p.m. OK Java 11 TESTS 87 218 102400 1200
66542463 adzi C Dec. 9, 2019, 12:02 p.m. OK Java 8 TESTS 87 109 0 1200
60309207 aearly C Sept. 9, 2019, 3:06 p.m. OK Java 8 TESTS 87 109 0 1200
60160953 Ahmed_Diab C Sept. 6, 2019, 8:57 a.m. OK Java 8 TESTS 87 109 0 1200
60053645 LeamyCodes C Sept. 5, 2019, 2:35 a.m. OK Java 8 TESTS 87 109 0 1200
60035990 Agnimandur C Sept. 4, 2019, 4:47 p.m. OK Java 8 TESTS 87 109 0 1200
68692399 akshVerma C Jan. 13, 2020, 6:43 a.m. OK Java 8 TESTS 87 124 0 1200
67969052 I_love_Harpae C Dec. 30, 2019, 2:20 p.m. OK Java 8 TESTS 87 124 0 1200
67320453 igor_kz C Dec. 21, 2019, 7:49 a.m. OK Java 8 TESTS 87 124 0 1200
62910749 Oland C Oct. 19, 2019, 7:14 a.m. OK Java 8 TESTS 87 124 0 1200
61392332 vjudge3 C Sept. 27, 2019, 10:36 p.m. OK Java 8 TESTS 87 124 0 1200
62567826 vjudge5 C Oct. 14, 2019, 1:40 p.m. OK JavaScript TESTS 87 46 1638400 1200
60050208 sjx233 C Sept. 4, 2019, 11:48 p.m. OK JavaScript TESTS 87 46 2252800 1200
60020439 Spheniscine C Sept. 4, 2019, 12:58 p.m. OK Kotlin TESTS 87 124 0 1200
62567846 cidgeedeng C Oct. 14, 2019, 1:41 p.m. OK Kotlin TESTS 87 124 0 1200
62559320 vjudge4 C Oct. 14, 2019, 11:32 a.m. OK Kotlin TESTS 87 124 0 1200
62558915 vjudge3 C Oct. 14, 2019, 11:26 a.m. OK Kotlin TESTS 87 124 0 1200
60026624 Fortin C Sept. 4, 2019, 2:19 p.m. OK Kotlin TESTS 87 124 0 1200
62561047 vjudge2 C Oct. 14, 2019, 11:57 a.m. OK Kotlin TESTS 87 140 0 1200
60410375 dkozak94 C Sept. 11, 2019, 9:04 p.m. OK Kotlin TESTS 87 140 102400 1200
60021429 XinLoiNguoi C Sept. 4, 2019, 1:11 p.m. OK Kotlin TESTS 87 140 102400 1200
60160744 ganixdd C Sept. 6, 2019, 8:52 a.m. OK Kotlin TESTS 87 140 102400 1200
60313316 Black_Fregat C Sept. 9, 2019, 4:47 p.m. OK Kotlin TESTS 87 155 0 1200
61211010 nadilk C Sept. 24, 2019, 11:28 a.m. OK Mono C# TESTS 87 46 716800 1200
63389164 Tan42 C Oct. 25, 2019, 2:40 p.m. OK Mono C# TESTS 87 61 1126400 1200
60045377 zazak C Sept. 4, 2019, 8:08 p.m. OK Mono C# TESTS 87 62 716800 1200
66736699 gorgchap C Dec. 12, 2019, 7:11 p.m. OK Mono C# TESTS 87 62 716800 1200
60947684 and999 C Sept. 20, 2019, 7:45 p.m. OK Mono C# TESTS 87 62 716800 1200
65745964 ansergeyg C Nov. 26, 2019, 12:15 p.m. OK Mono C# TESTS 87 62 716800 1200
60287940 treasuryonly C Sept. 9, 2019, 4:36 a.m. OK Mono C# TESTS 87 62 716800 1200
60136917 m1_k3 C Sept. 5, 2019, 6:34 p.m. OK Mono C# TESTS 87 62 716800 1200
60279340 Goga C Sept. 8, 2019, 7:43 p.m. OK Mono C# TESTS 87 62 3174400 1200
60174130 NiggaPony C Sept. 6, 2019, 1:47 p.m. OK Mono C# TESTS 87 77 3379200 1200
65430778 vjudge1 C Nov. 20, 2019, noon OK MS C++ TESTS 87 31 204800 1200
65432798 vjudge3 C Nov. 20, 2019, 12:32 p.m. OK MS C++ TESTS 87 31 204800 1200
65484613 vjudge3 C Nov. 21, 2019, 12:52 p.m. OK MS C++ TESTS 87 31 204800 1200
65660488 vjudge3 C Nov. 24, 2019, 12:10 p.m. OK MS C++ TESTS 87 31 204800 1200
66262814 vjudge1 C Dec. 4, 2019, 9:08 a.m. OK MS C++ TESTS 87 31 204800 1200
68683979 vjudge4 C Jan. 13, 2020, 1:50 a.m. OK MS C++ TESTS 87 31 204800 1200
66318082 vjudge4 C Dec. 5, 2019, 1:32 p.m. OK MS C++ TESTS 87 31 204800 1200
66311357 vjudge4 C Dec. 5, 2019, 11:33 a.m. OK MS C++ TESTS 87 31 204800 1200
61346172 vjudge3 C Sept. 27, 2019, 5:04 a.m. OK MS C++ TESTS 87 31 204800 1200
66263066 vjudge5 C Dec. 4, 2019, 9:14 a.m. OK MS C++ TESTS 87 31 204800 1200
61332602 vjudge5 C Sept. 26, 2019, 3:27 p.m. OK MS C++ 2017 TESTS 87 31 204800 1200
66544281 vjudge3 C Dec. 9, 2019, 12:39 p.m. OK MS C++ 2017 TESTS 87 31 204800 1200
65428324 vjudge2 C Nov. 20, 2019, 11:20 a.m. OK MS C++ 2017 TESTS 87 31 204800 1200
65152399 vjudge4 C Nov. 16, 2019, 8:03 a.m. OK MS C++ 2017 TESTS 87 31 204800 1200
61325418 vjudge2 C Sept. 26, 2019, 1:41 p.m. OK MS C++ 2017 TESTS 87 31 204800 1200
61318594 sansanmiaomiao C Sept. 26, 2019, 11:53 a.m. OK MS C++ 2017 TESTS 87 31 204800 1200
60843505 ChaLemon C Sept. 19, 2019, 11:47 a.m. OK MS C++ 2017 TESTS 87 31 204800 1200
60056467 YoshinariYoh C Sept. 5, 2019, 4:33 a.m. OK MS C++ 2017 TESTS 87 31 204800 1200
66338007 vjudge3 C Dec. 5, 2019, 3:21 p.m. OK MS C++ 2017 TESTS 87 31 409600 1200
66315657 vjudge4 C Dec. 5, 2019, 1 p.m. OK MS C++ 2017 TESTS 87 31 512000 1200
61160267 mayakin C Sept. 23, 2019, 3:42 p.m. OK PHP TESTS 87 62 409600 1200
60049315 MuhammedAbdalla C Sept. 4, 2019, 11:01 p.m. OK PHP TESTS 87 62 14233600 1200
60047599 angoncal C Sept. 4, 2019, 9:28 p.m. OK PyPy 2 TESTS 87 124 921600 1200
60028044 bertrandovide C Sept. 4, 2019, 2:39 p.m. OK PyPy 2 TESTS 87 139 1740800 1200
60504906 lucaentremont C Sept. 13, 2019, 8:48 p.m. OK PyPy 2 TESTS 87 140 921600 1200
60137385 anshuman16423 C Sept. 5, 2019, 6:44 p.m. OK PyPy 2 TESTS 87 140 2048000 1200
60017737 TheManTheMythTheLegend C Sept. 4, 2019, 12:27 p.m. OK PyPy 2 TESTS 87 140 3276800 1200
60007336 htvu C Sept. 4, 2019, 10:45 a.m. OK PyPy 2 TESTS 87 155 921600 1200
60033273 alexwice C Sept. 4, 2019, 4 p.m. OK PyPy 2 TESTS 87 155 1740800 1200
60342535 GTrigger C Sept. 10, 2019, 11:25 a.m. OK PyPy 2 TESTS 87 187 10035200 1200
60028174 ssk497 C Sept. 4, 2019, 2:41 p.m. OK PyPy 2 TESTS 87 234 10035200 1200
69269365 Ravi_Napit C Jan. 21, 2020, 8:05 p.m. OK PyPy 3 TESTS 87 155 2457600 1200
60026610 FireBird23 C Sept. 4, 2019, 2:19 p.m. OK PyPy 3 TESTS 87 155 2457600 1200
64759979 k0ndr C Nov. 12, 2019, 6:40 p.m. OK PyPy 3 TESTS 87 155 2560000 1200
62113622 gim C Oct. 8, 2019, 12:50 p.m. OK PyPy 3 TESTS 87 155 2560000 1200
61174908 abhivick07 C Sept. 23, 2019, 5:49 p.m. OK PyPy 3 TESTS 87 155 2560000 1200
60749863 pi0110 C Sept. 18, 2019, 5:30 a.m. OK PyPy 3 TESTS 87 155 2560000 1200
60678759 vjudge1 C Sept. 16, 2019, 1:19 p.m. OK PyPy 3 TESTS 87 155 2560000 1200
60155881 tanu38 C Sept. 6, 2019, 6:46 a.m. OK PyPy 3 TESTS 87 155 2560000 1200
60068228 sanvi_kiit C Sept. 5, 2019, 10:03 a.m. OK PyPy 3 TESTS 87 155 2560000 1200
60059088 KA_Rma C Sept. 5, 2019, 6:01 a.m. OK PyPy 3 TESTS 87 155 2560000 1200
60504867 lucaentremont C Sept. 13, 2019, 8:47 p.m. OK Python 2 TESTS 87 202 307200 1200
60741172 BBallhandle C Sept. 17, 2019, 8:12 p.m. OK Python 2 TESTS 87 202 3686400 1200
60009349 realnimish C Sept. 4, 2019, 10:56 a.m. OK Python 2 TESTS 87 233 1536000 1200
60059431 phoenix28 C Sept. 5, 2019, 6:12 a.m. OK Python 2 TESTS 87 264 3686400 1200
60022925 Pyar.Mahobat.Dhoka.Hai C Sept. 4, 2019, 1:30 p.m. OK Python 2 TESTS 87 280 2969600 1200
60014862 tanmay_freak C Sept. 4, 2019, 11:29 a.m. OK Python 2 TESTS 87 296 4710400 1200
60481733 Liquid_7285 C Sept. 13, 2019, 10:48 a.m. OK Python 3 TESTS 87 124 409600 1200
60350880 Andruwka C Sept. 10, 2019, 2:15 p.m. OK Python 3 TESTS 87 124 409600 1200
60135688 LintuStorm C Sept. 5, 2019, 6:11 p.m. OK Python 3 TESTS 87 124 409600 1200
60054349 charlesmartino C Sept. 5, 2019, 3:07 a.m. OK Python 3 TESTS 87 124 409600 1200
62600391 hongboyang C Oct. 15, 2019, 5:12 a.m. OK Python 3 TESTS 87 139 409600 1200
60282524 nealzane C Sept. 8, 2019, 10:12 p.m. OK Python 3 TESTS 87 139 409600 1200
60045164 XAMRMAX C Sept. 4, 2019, 8:02 p.m. OK Python 3 TESTS 87 139 409600 1200
60025936 FlyingBag65 C Sept. 4, 2019, 2:10 p.m. OK Python 3 TESTS 87 139 409600 1200
61061145 Tayi_sid C Sept. 22, 2019, 9:30 a.m. OK Python 3 TESTS 87 140 409600 1200
60493868 StrifeStg C Sept. 13, 2019, 3:32 p.m. OK Python 3 TESTS 87 140 409600 1200
60416930 nemi_zzz C Sept. 12, 2019, 3:02 a.m. OK Ruby TESTS 87 124 409600 1200
60404767 tpoeiras C Sept. 11, 2019, 6:08 p.m. OK Rust TESTS 87 31 819200 1200
60043018 sansen C Sept. 4, 2019, 7:06 p.m. OK Rust TESTS 87 46 1945600 1200

remove filters

Back to search problems