Codeforces Round 620 (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
1304 Codeforces Round 620 (Div. 2) FINISHED False 7200 155580911 Feb. 15, 2020, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6384 ) D Shortest and Longest LIS PROGRAMMING constructive algorithms graphs greedy two pointers 1800

B"Gildong recently learned how to find the longest increasing subsequence (LIS) in O(n log{n}) time for a sequence of length n . He wants to test himself if he can implement it correctly, but he couldn't find any online judges that would do it (even though there are actually many of them). So instead he's going to make a quiz for you about making permutations of n distinct integers between 1 and n , inclusive, to test his code with your output. The quiz is as follows. Gildong provides a string of length n-1 , consisting of characters '<' and '>' only. The i -th (1-indexed) character is the comparison result between the i -th element and the i+1 -st element of the sequence. If the i -th character of the string is '<', then the i -th element of the sequence is less than the i+1 -st element. If the i -th character of the string is '>', then the i -th element of the sequence is greater than the i+1 -st element. He wants you to find two possible sequences (not necessarily distinct) consisting of n distinct integers between 1 and n , inclusive, each satisfying the comparison results, where the length of the LIS of the first sequence is minimum possible, and the length of the LIS of the second sequence is maximum possible. Each test contains one or more test cases. The first line contains the number of test cases t ( 1 <= t <= 10^4 ). Each test case contains exactly one line, consisting of an integer and a string consisting of characters '<' and '>' only. The integer is n ( 2 <= n <= 2 cdot 10^5 ), the length of the permutation you need to find. The string is the comparison results explained in the description. The length of the string is n-1 . It is guaranteed that the sum of all n in all test cases doesn't exceed 2 cdot 10^5 . For each test case, print two lines with n integers each. The first line is the sequence with the"...

Tutorials

Codeforces Round #620 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
71604061 JWoong149 D Feb. 22, 2020, 10:07 a.m. OK Clang++17 Diagnostics TESTS 59 1497 16793600 1800
71152525 daut-dlang D Feb. 15, 2020, 2:14 p.m. OK D TESTS 59 140 11878400 1800
71146138 iica D Feb. 15, 2020, 1:53 p.m. OK D TESTS 59 156 22528000 1800
71560734 vjudge5 D Feb. 21, 2020, 3:48 p.m. OK FPC TESTS 59 1185 2969600 1800
71172546 LaSWeeG D Feb. 15, 2020, 5:10 p.m. OK FPC TESTS 59 1216 5017600 1800
71170233 LaSWeeG D Feb. 15, 2020, 4:48 p.m. OK FPC TESTS 59 1372 5017600 1800
71222666 frank1586 D Feb. 16, 2020, 12:45 p.m. OK GNU C11 TESTS 59 1341 1024000 1800
71164521 pengin_2000 D Feb. 15, 2020, 2:58 p.m. OK GNU C11 TESTS 59 1388 5017600 1800
71191983 luogu_bot2 D Feb. 16, 2020, 2:25 a.m. OK GNU C++11 TESTS 59 46 1024000 1800
71191963 _DAG_ D Feb. 16, 2020, 2:24 a.m. OK GNU C++11 TESTS 59 46 1024000 1800
71158748 QwQcOrZ D Feb. 15, 2020, 2:37 p.m. OK GNU C++11 TESTS 59 46 1024000 1800
71193234 chenyewei_1234 D Feb. 16, 2020, 3:12 a.m. OK GNU C++11 TESTS 59 46 1024000 1800
71207276 yuzhechuan D Feb. 16, 2020, 8:07 a.m. OK GNU C++11 TESTS 59 46 1024000 1800
71157084 zghtyarecrenj D Feb. 15, 2020, 2:31 p.m. OK GNU C++11 TESTS 59 46 2662400 1800
71148369 hs-black D Feb. 15, 2020, 2 p.m. OK GNU C++11 TESTS 59 46 2662400 1800
71149777 dfcmd D Feb. 15, 2020, 2:04 p.m. OK GNU C++11 TESTS 59 46 17612800 1800
71196052 AutumnKite D Feb. 16, 2020, 4:42 a.m. OK GNU C++11 TESTS 59 46 17612800 1800
71159075 AyoAyowei D Feb. 15, 2020, 2:38 p.m. OK GNU C++11 TESTS 59 62 1843200 1800
71438466 QAQAutoMaton D Feb. 19, 2020, 1:07 p.m. OK GNU C++14 TESTS 59 46 5222400 1800
71143396 wleung_bvg D Feb. 15, 2020, 1:45 p.m. OK GNU C++14 TESTS 59 62 1331200 1800
71196429 Charles1999 D Feb. 16, 2020, 4:51 a.m. OK GNU C++14 TESTS 59 78 1024000 1800
71611912 mayiyang D Feb. 22, 2020, 12:43 p.m. OK GNU C++14 TESTS 59 78 1024000 1800
71426219 vjudge3 D Feb. 19, 2020, 9:18 a.m. OK GNU C++14 TESTS 59 78 1024000 1800
71276106 Zery_test D Feb. 17, 2020, 12:11 p.m. OK GNU C++14 TESTS 59 78 1024000 1800
71253301 selia D Feb. 17, 2020, 2:48 a.m. OK GNU C++14 TESTS 59 78 1024000 1800
71249328 albeXL D Feb. 16, 2020, 11:20 p.m. OK GNU C++14 TESTS 59 78 1331200 1800
71176124 achibulup D Feb. 15, 2020, 6:02 p.m. OK GNU C++14 TESTS 59 78 1843200 1800
71533410 Arg_007 D Feb. 21, 2020, 7:08 a.m. OK GNU C++14 TESTS 59 78 1843200 1800
71153751 Alphagocc D Feb. 15, 2020, 2:19 p.m. OK GNU C++17 TESTS 59 46 6348800 1800
71219308 yaozilong D Feb. 16, 2020, 11:40 a.m. OK GNU C++17 TESTS 59 77 512000 1800
71404026 Siata D Feb. 18, 2020, 8:56 p.m. OK GNU C++17 TESTS 59 77 1331200 1800
71187971 aki167yuuki D Feb. 15, 2020, 10:56 p.m. OK GNU C++17 TESTS 59 77 1331200 1800
71200267 idgaf_99 D Feb. 16, 2020, 6:08 a.m. OK GNU C++17 TESTS 59 77 1331200 1800
71190770 _WorstCase_ D Feb. 16, 2020, 1:32 a.m. OK GNU C++17 TESTS 59 77 2150400 1800
71520252 qtuan140101 D Feb. 20, 2020, 11:04 p.m. OK GNU C++17 TESTS 59 77 2150400 1800
71480560 time_14_07 D Feb. 20, 2020, 8:12 a.m. OK GNU C++17 TESTS 59 77 2150400 1800
71183786 3funnn D Feb. 15, 2020, 8:35 p.m. OK GNU C++17 TESTS 59 77 2150400 1800
71179717 albatross16 D Feb. 15, 2020, 7:07 p.m. OK GNU C++17 TESTS 59 77 2150400 1800
71173824 synapse D Feb. 15, 2020, 5:26 p.m. OK Go TESTS 59 109 4505600 1800
71173783 synapse D Feb. 15, 2020, 5:25 p.m. OK Go TESTS 59 124 4505600 1800
71160122 synapse D Feb. 15, 2020, 2:42 p.m. OK Go TESTS 59 124 4505600 1800
71153872 Jughead D Feb. 15, 2020, 2:19 p.m. OK Go TESTS 59 1403 4505600 1800
71169940 naipia D Feb. 15, 2020, 4:47 p.m. OK Go TESTS 59 1465 4505600 1800
71385254 Anonymous D Feb. 18, 2020, 2:41 p.m. OK Java 11 TESTS 59 249 0 1800
71477890 Azakarka D Feb. 20, 2020, 7:09 a.m. OK Java 11 TESTS 59 264 0 1800
71162160 irredeemablyalone D Feb. 15, 2020, 2:50 p.m. OK Java 11 TESTS 59 265 0 1800
71251631 alankritanand001 D Feb. 17, 2020, 1:30 a.m. OK Java 11 TESTS 59 280 0 1800
71170247 jenish9599 D Feb. 15, 2020, 4:48 p.m. OK Java 11 TESTS 59 280 0 1800
71450136 Ti4oVolchara D Feb. 19, 2020, 4:28 p.m. OK Java 11 TESTS 59 280 819200 1800
71192789 flydzt D Feb. 16, 2020, 2:54 a.m. OK Java 11 TESTS 59 296 0 1800
71418116 elkadymohammed01 D Feb. 19, 2020, 6:27 a.m. OK Java 11 TESTS 59 327 5529600 1800
71159713 nayix D Feb. 15, 2020, 2:41 p.m. OK Java 11 TESTS 59 436 1536000 1800
71205745 skyfighter D Feb. 16, 2020, 7:42 a.m. OK Java 11 TESTS 59 436 4300800 1800
71149374 saurabhs1206 D Feb. 15, 2020, 2:03 p.m. OK Java 8 TESTS 59 155 13926400 1800
71197157 manish_98 D Feb. 16, 2020, 5:08 a.m. OK Java 8 TESTS 59 171 0 1800
71197133 Modi_sarkar D Feb. 16, 2020, 5:08 a.m. OK Java 8 TESTS 59 171 0 1800
71350356 bluesky111 D Feb. 18, 2020, 3:27 a.m. OK Java 8 TESTS 59 171 3584000 1800
71160489 Katushechka D Feb. 15, 2020, 2:44 p.m. OK Java 8 TESTS 59 171 4812800 1800
71165532 Tatsuyaaaa D Feb. 15, 2020, 3:02 p.m. OK Java 8 TESTS 59 171 5632000 1800
71571913 OmarRadwan D Feb. 21, 2020, 7:26 p.m. OK Java 8 TESTS 59 171 8601600 1800
71153393 Unum D Feb. 15, 2020, 2:17 p.m. OK Java 8 TESTS 59 171 13107200 1800
71622817 gyf1995 D Feb. 22, 2020, 4:25 p.m. OK Java 8 TESTS 59 186 0 1800
71164988 YahiaSherif D Feb. 15, 2020, 3 p.m. OK Java 8 TESTS 59 186 2867200 1800
71159147 Spheniscine D Feb. 15, 2020, 2:39 p.m. OK Kotlin TESTS 59 202 8294400 1800
71177149 SlavaG D Feb. 15, 2020, 6:19 p.m. OK Kotlin TESTS 59 327 14336000 1800
71161900 Long-shot D Feb. 15, 2020, 2:49 p.m. OK Kotlin TESTS 59 343 8192000 1800
71156117 seirion D Feb. 15, 2020, 2:28 p.m. OK Kotlin TESTS 59 389 20480000 1800
71166396 strelas D Feb. 15, 2020, 3:04 p.m. OK Kotlin TESTS 59 1559 2457600 1800
71172948 scnucjh D Feb. 15, 2020, 5:15 p.m. OK Kotlin TESTS 59 1824 175206400 1800
71147747 tomomo2b2 D Feb. 15, 2020, 1:58 p.m. OK Mono C# TESTS 59 140 17612800 1800
71170974 hibatibati D Feb. 15, 2020, 4:53 p.m. OK Mono C# TESTS 59 155 18227200 1800
71154725 Yupiteru D Feb. 15, 2020, 2:22 p.m. OK Mono C# TESTS 59 156 161894400 1800
71199761 artworks D Feb. 16, 2020, 5:59 a.m. OK Mono C# TESTS 59 202 35737600 1800
71166322 sergmel D Feb. 15, 2020, 3:04 p.m. OK Mono C# TESTS 59 248 26521600 1800
71156881 plasma-effect D Feb. 15, 2020, 2:30 p.m. OK Mono C# TESTS 59 249 23449600 1800
71332414 korntest D Feb. 17, 2020, 6 p.m. OK Mono C# TESTS 59 1450 10956800 1800
71171866 vjudge3 D Feb. 15, 2020, 5:02 p.m. OK MS C++ TESTS 59 109 1843200 1800
71528352 vjudge2 D Feb. 21, 2020, 5:16 a.m. OK MS C++ TESTS 59 218 2048000 1800
71532071 vjudge1 D Feb. 21, 2020, 6:42 a.m. OK MS C++ TESTS 59 233 4198400 1800
71214577 Anterior D Feb. 16, 2020, 10:08 a.m. OK MS C++ TESTS 59 234 1228800 1800
71164625 Tampere D Feb. 15, 2020, 2:59 p.m. OK MS C++ TESTS 59 265 2662400 1800
71533469 vjudge3 D Feb. 21, 2020, 7:09 a.m. OK MS C++ TESTS 59 311 1024000 1800
71280918 LeeLdler D Feb. 17, 2020, 1:44 p.m. OK MS C++ 2017 TESTS 59 124 2048000 1800
71156044 pichulia D Feb. 15, 2020, 2:27 p.m. OK MS C++ 2017 TESTS 59 124 2662400 1800
71221642 vjudge5 D Feb. 16, 2020, 12:26 p.m. OK MS C++ 2017 TESTS 59 124 2867200 1800
71164574 llFreetimell D Feb. 15, 2020, 2:58 p.m. OK MS C++ 2017 TESTS 59 124 2969600 1800
71230133 vjudge2 D Feb. 16, 2020, 2:56 p.m. OK MS C++ 2017 TESTS 59 124 3584000 1800
71148084 youx D Feb. 15, 2020, 1:59 p.m. OK MS C++ 2017 TESTS 59 124 3993600 1800
71612065 vjudge2 D Feb. 22, 2020, 12:46 p.m. OK MS C++ 2017 TESTS 59 124 3993600 1800
71171701 2018030402032 D Feb. 15, 2020, 5 p.m. OK MS C++ 2017 TESTS 59 139 1843200 1800
71164304 Fire_ass D Feb. 15, 2020, 2:58 p.m. OK MS C++ 2017 TESTS 59 140 6246400 1800
71266642 paradoxhzy D Feb. 17, 2020, 8:51 a.m. OK MS C++ 2017 TESTS 59 170 2969600 1800
71163651 Gaurav1 D Feb. 15, 2020, 2:55 p.m. OK PyPy 2 TESTS 59 249 11878400 1800
71479919 IngaleAnkur10 D Feb. 20, 2020, 7:57 a.m. OK PyPy 2 TESTS 59 249 16281600 1800
71152121 pajenegod D Feb. 15, 2020, 2:13 p.m. OK PyPy 2 TESTS 59 249 26828800 1800
71469566 siyy D Feb. 20, 2020, 2:55 a.m. OK PyPy 3 TESTS 59 265 16486400 1800
71480291 happynxy D Feb. 20, 2020, 8:06 a.m. OK PyPy 3 TESTS 59 389 18534400 1800
71147775 CHelle D Feb. 15, 2020, 1:58 p.m. OK PyPy 3 TESTS 59 389 23859200 1800
71466262 shiv_99 D Feb. 20, 2020, 12:08 a.m. OK PyPy 3 TESTS 59 420 19660800 1800
71158285 zqx1392 D Feb. 15, 2020, 2:35 p.m. OK PyPy 3 TESTS 59 420 23347200 1800
71486871 sam997 D Feb. 20, 2020, 10:26 a.m. OK PyPy 3 TESTS 59 421 22220800 1800
71407597 twbbbb D Feb. 18, 2020, 11:50 p.m. OK PyPy 3 TESTS 59 436 18944000 1800
71151116 addammy D Feb. 15, 2020, 2:09 p.m. OK PyPy 3 TESTS 59 436 23347200 1800
71175921 recuraki D Feb. 15, 2020, 5:59 p.m. OK PyPy 3 TESTS 59 436 31948800 1800
71453079 xiema D Feb. 19, 2020, 5:20 p.m. OK PyPy 3 TESTS 59 436 43110400 1800
71267810 SoSooding D Feb. 17, 2020, 9:17 a.m. OK Python 2 TESTS 59 514 21811200 1800
71147930 throwawayatcoder D Feb. 15, 2020, 1:58 p.m. OK Python 3 TESTS 59 421 26214400 1800
71474796 mzikeks D Feb. 20, 2020, 5:55 a.m. OK Python 3 TESTS 59 592 15564800 1800
71170886 burfnerd D Feb. 15, 2020, 4:52 p.m. OK Python 3 TESTS 59 623 15462400 1800
71272361 diffeo D Feb. 17, 2020, 10:52 a.m. OK Python 3 TESTS 59 623 29081600 1800
71147499 old_boo D Feb. 15, 2020, 1:57 p.m. OK Python 3 TESTS 59 811 11878400 1800
71215777 tushartyagi8750 D Feb. 16, 2020, 10:32 a.m. OK Python 3 TESTS 59 857 11878400 1800
71198783 MinecraftFuns D Feb. 16, 2020, 5:42 a.m. OK Python 3 TESTS 59 935 32870400 1800
71159058 Code__Addict D Feb. 15, 2020, 2:38 p.m. OK Python 3 TESTS 59 966 14540800 1800
71198652 akiradeveloper D Feb. 16, 2020, 5:39 a.m. OK Rust TESTS 59 78 12083200 1800
71190854 terraformer D Feb. 16, 2020, 1:36 a.m. OK Rust TESTS 59 2652 5529600 1800
71164044 j31d0 D Feb. 15, 2020, 2:57 p.m. OK Scala TESTS 59 716 9011200 1800

remove filters

Back to search problems