Good Bye 2021: 2022 is NEAR

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
1616 Good Bye 2021: 2022 is NEAR FINISHED False 7200 96474263 Dec. 29, 2021, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19871 ) B Mirror in the String PROGRAMMING greedy strings 1100

B'You have a string s_1 s_2 ldots s_n and you stand on the left of the string looking right. You want to choose an index k ( 1 <= k <= n ) and place a mirror after the k -th letter, so that what you see is s_1 s_2 ldots s_k s_k s_{k - 1} ldots s_1 . What is the lexicographically smallest string you can see? A string a is lexicographically smaller than a string b if and only if one of the following holds: The first line of input contains one integer t ( 1 <= q t <= q 10 ,000 ): the number of test cases. The next t lines contain the description of the test cases, two lines per a test case. In the first line you are given one integer n ( 1 <= q n <= q 10^5 ): the length of the string. The second line contains the string s consisting of n lowercase English characters. It is guaranteed that the sum of n over all test cases does not exceed 10^5 . For each test case print the lexicographically smallest string you can see. In the first test case choose k = 1 to obtain "cc". In the second test case choose k = 3 to obtain "cbaabc". In the third test case choose k = 1 to obtain "aa". In the fourth test case choose k = 1 to obtain "bb". '...

Tutorials

Good Bye 2021 -- Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
141167082 rainboy B Dec. 30, 2021, 1:50 p.m. OK GNU C11 TESTS 15 46 307200 1100
141134403 Murli_33 B Dec. 29, 2021, 6:45 p.m. OK GNU C11 TESTS 15 109 1024000 1100
141208131 Sadi123 B Dec. 31, 2021, 2:55 a.m. OK GNU C11 TESTS 15 717 102400 1100
141178912 Black8Jack B Dec. 30, 2021, 4:05 p.m. OK GNU C11 TESTS 15 717 409600 1100
141153420 suchit_07 B Dec. 30, 2021, 11:25 a.m. OK GNU C11 TESTS 15 732 102400 1100
141154003 skicean B Dec. 30, 2021, 11:30 a.m. OK GNU C++14 TESTS 15 15 102400 1100
141141718 zzuzyj B Dec. 30, 2021, 9:15 a.m. OK GNU C++14 TESTS 15 15 102400 1100
141214165 prakashM27 B Dec. 31, 2021, 5:29 a.m. OK GNU C++14 TESTS 15 15 102400 1100
141207559 Wuyanru B Dec. 31, 2021, 2:36 a.m. OK GNU C++14 TESTS 15 15 102400 1100
141165848 Yami27 B Dec. 30, 2021, 1:37 p.m. OK GNU C++14 TESTS 15 15 102400 1100
141204344 spranjal B Dec. 31, 2021, 12:27 a.m. OK GNU C++14 TESTS 15 15 204800 1100
141149963 Bnahmad15 B Dec. 30, 2021, 10:52 a.m. OK GNU C++14 TESTS 15 15 204800 1100
141177391 Emjl B Dec. 30, 2021, 3:46 p.m. OK GNU C++14 TESTS 15 15 204800 1100
141205507 chenmoooo B Dec. 31, 2021, 1:18 a.m. OK GNU C++14 TESTS 15 15 307200 1100
141212113 dream_love_lcj B Dec. 31, 2021, 4:47 a.m. OK GNU C++14 TESTS 15 15 307200 1100
141135612 medeshi.kristian B Dec. 29, 2021, 6:59 p.m. OK GNU C++17 TESTS 15 15 102400 1100
141155624 ndxgd B Dec. 30, 2021, 11:47 a.m. OK GNU C++17 TESTS 15 15 102400 1100
141186605 halohalo B Dec. 30, 2021, 5:38 p.m. OK GNU C++17 TESTS 15 15 102400 1100
141204460 satyampandey B Dec. 31, 2021, 12:32 a.m. OK GNU C++17 TESTS 15 15 102400 1100
141137581 Kerim.K B Dec. 30, 2021, 8:45 a.m. OK GNU C++17 TESTS 15 15 102400 1100
141137693 Gog B Dec. 30, 2021, 8:47 a.m. OK GNU C++17 TESTS 15 15 204800 1100
141211266 shlvam B Dec. 31, 2021, 4:28 a.m. OK GNU C++17 TESTS 15 15 307200 1100
141215586 Smit_prajapati01 B Dec. 31, 2021, 5:54 a.m. OK GNU C++17 TESTS 15 15 307200 1100
141215241 starboy_03 B Dec. 31, 2021, 5:49 a.m. OK GNU C++17 TESTS 15 15 307200 1100
141213120 VaibhavRK B Dec. 31, 2021, 5:08 a.m. OK GNU C++17 TESTS 15 15 307200 1100
141163358 Xylofo B Dec. 30, 2021, 1:11 p.m. OK GNU C++17 (64) TESTS 15 0 512000 1100
141205016 basic_string B Dec. 31, 2021, 12:55 a.m. OK GNU C++17 (64) TESTS 15 15 102400 1100
141175426 sed_life B Dec. 30, 2021, 3:21 p.m. OK GNU C++17 (64) TESTS 15 15 307200 1100
141208882 InFaNg B Dec. 31, 2021, 3:22 a.m. OK GNU C++17 (64) TESTS 15 15 307200 1100
141206847 Porag_2742 B Dec. 31, 2021, 2:11 a.m. OK GNU C++17 (64) TESTS 15 15 307200 1100
141188544 dong_gas B Dec. 30, 2021, 6:01 p.m. OK GNU C++17 (64) TESTS 15 15 307200 1100
141178385 pcms2 B Dec. 30, 2021, 3:58 p.m. OK GNU C++17 (64) TESTS 15 15 307200 1100
141163668 Ravishu5 B Dec. 30, 2021, 1:15 p.m. OK GNU C++17 (64) TESTS 15 15 307200 1100
141146791 pakhandi98 B Dec. 30, 2021, 10:18 a.m. OK GNU C++17 (64) TESTS 15 15 307200 1100
141137530 MAX11189 B Dec. 30, 2021, 8:44 a.m. OK GNU C++17 (64) TESTS 15 15 307200 1100
141148001 Lhohelhohehmm B Dec. 30, 2021, 10:31 a.m. OK GNU C++20 (64) TESTS 15 0 409600 1100
141137005 suraj429 B Dec. 30, 2021, 8:35 a.m. OK GNU C++20 (64) TESTS 15 0 614400 1100
141148249 zxzxzxd B Dec. 30, 2021, 10:34 a.m. OK GNU C++20 (64) TESTS 15 0 1024000 1100
141183315 jayjian B Dec. 30, 2021, 4:58 p.m. OK GNU C++20 (64) TESTS 15 15 102400 1100
141137521 Gog B Dec. 30, 2021, 8:44 a.m. OK GNU C++20 (64) TESTS 15 15 204800 1100
141137223 Gog B Dec. 30, 2021, 8:39 a.m. OK GNU C++20 (64) TESTS 15 15 204800 1100
141131014 _Senior B Dec. 29, 2021, 6:15 p.m. OK GNU C++20 (64) TESTS 15 15 204800 1100
141196583 Rom_Bog B Dec. 30, 2021, 8:04 p.m. OK GNU C++20 (64) TESTS 15 15 307200 1100
141206352 gxy001 B Dec. 31, 2021, 1:51 a.m. OK GNU C++20 (64) TESTS 15 15 307200 1100
141209261 hello_NSG B Dec. 31, 2021, 3:33 a.m. OK GNU C++20 (64) TESTS 15 15 307200 1100
141156637 D05T0N B Dec. 30, 2021, 11:59 a.m. OK Go TESTS 15 46 38400000 1100
141187662 MrOtter B Dec. 30, 2021, 5:51 p.m. OK Java 11 TESTS 15 171 0 1100
141135192 sohamdas301 B Dec. 29, 2021, 6:54 p.m. OK Java 11 TESTS 15 171 0 1100
141129699 dupr B Dec. 29, 2021, 6:06 p.m. OK Java 11 TESTS 15 171 0 1100
141206758 CCS_Covenant B Dec. 31, 2021, 2:08 a.m. OK Java 11 TESTS 15 187 0 1100
141161045 unfixedbug B Dec. 30, 2021, 12:45 p.m. OK Java 11 TESTS 15 187 0 1100
141200497 churros B Dec. 30, 2021, 9:41 p.m. OK Java 11 TESTS 15 202 0 1100
141176199 ak_ankit B Dec. 30, 2021, 3:31 p.m. OK Java 11 TESTS 15 202 0 1100
141141771 __Serendipity B Dec. 30, 2021, 9:16 a.m. OK Java 11 TESTS 15 202 0 1100
141135665 _abstract_ B Dec. 29, 2021, 7 p.m. OK Java 11 TESTS 15 202 0 1100
141136814 Srikanth1777 B Dec. 30, 2021, 8:31 a.m. OK Java 11 TESTS 15 218 0 1100
141130538 ygonepiece B Dec. 29, 2021, 6:11 p.m. OK Java 8 TESTS 15 93 0 1100
141153804 201502010200 B Dec. 30, 2021, 11:28 a.m. OK Java 8 TESTS 15 108 0 1100
141150625 vermadv2000 B Dec. 30, 2021, 10:59 a.m. OK Java 8 TESTS 15 108 0 1100
141200103 tishrah_ B Dec. 30, 2021, 9:29 p.m. OK Java 8 TESTS 15 109 0 1100
141199967 tishrah_ B Dec. 30, 2021, 9:24 p.m. OK Java 8 TESTS 15 109 0 1100
141184201 rsingh3_be18 B Dec. 30, 2021, 5:09 p.m. OK Java 8 TESTS 15 109 0 1100
141171720 lcheeme1 B Dec. 30, 2021, 2:38 p.m. OK Java 8 TESTS 15 109 0 1100
141164685 pranavggupta06 B Dec. 30, 2021, 1:25 p.m. OK Java 8 TESTS 15 109 0 1100
141129995 WalrusRamen21 B Dec. 29, 2021, 6:08 p.m. OK Java 8 TESTS 15 109 0 1100
141184001 guru1603 B Dec. 30, 2021, 5:07 p.m. OK Java 8 TESTS 15 124 0 1100
141132041 _Astron B Dec. 29, 2021, 6:22 p.m. OK Kotlin 1.4 TESTS 15 140 0 1100
141199459 Damirca B Dec. 30, 2021, 9:09 p.m. OK MS C++ 2017 TESTS 15 31 409600 1100
141213006 Agumon B Dec. 31, 2021, 5:06 a.m. OK MS C++ 2017 TESTS 15 46 409600 1100
141135959 emotionless30 B Dec. 29, 2021, 7:03 p.m. OK MS C++ 2017 TESTS 15 46 409600 1100
141149408 A_Pier B Dec. 30, 2021, 10:46 a.m. OK MS C++ 2017 TESTS 15 46 614400 1100
141154681 Tagaki B Dec. 30, 2021, 11:37 a.m. OK MS C++ 2017 TESTS 15 61 307200 1100
141171870 Falcon-64 B Dec. 30, 2021, 2:40 p.m. OK MS C++ 2017 TESTS 15 62 307200 1100
141169825 dushman1029 B Dec. 30, 2021, 2:17 p.m. OK MS C++ 2017 TESTS 15 62 307200 1100
141133188 Touristinya B Dec. 29, 2021, 6:32 p.m. OK MS C++ 2017 TESTS 15 62 307200 1100
141129856 Mery2005 B Dec. 29, 2021, 6:07 p.m. OK MS C++ 2017 TESTS 15 62 307200 1100
141209753 vjudge3 B Dec. 31, 2021, 3:48 a.m. OK MS C++ 2017 TESTS 15 62 409600 1100
141136624 lemiao12 B Dec. 30, 2021, 8:26 a.m. OK PyPy 3 TESTS 15 93 3276800 1100
141137236 epoweripi B Dec. 30, 2021, 8:39 a.m. OK PyPy 3 TESTS 15 140 5632000 1100
141144252 feelme B Dec. 30, 2021, 9:47 a.m. OK PyPy 3 TESTS 15 155 6963200 1100
141130123 tarun_aren B Dec. 29, 2021, 6:09 p.m. OK PyPy 3 TESTS 15 170 7475200 1100
141188801 khanter_ B Dec. 30, 2021, 6:04 p.m. OK PyPy 3 TESTS 15 171 7782400 1100
141130207 legend.ary_as B Dec. 29, 2021, 6:09 p.m. OK PyPy 3 TESTS 15 187 6041600 1100
141151967 ON_THE_EDGE B Dec. 30, 2021, 11:13 a.m. OK PyPy 3 TESTS 15 202 15155200 1100
141142500 NAVI_Perfecto B Dec. 30, 2021, 9:26 a.m. OK PyPy 3 TESTS 15 202 15667200 1100
141150708 wwwwzhh B Dec. 30, 2021, 11 a.m. OK PyPy 3 TESTS 15 234 9830400 1100
141130782 Ayushman_123 B Dec. 29, 2021, 6:13 p.m. OK PyPy 3 TESTS 15 264 11059200 1100
141149916 vineeth_kada B Dec. 30, 2021, 10:51 a.m. OK PyPy 3-64 TESTS 15 124 5632000 1100
141134592 mayank35 B Dec. 29, 2021, 6:47 p.m. OK PyPy 3-64 TESTS 15 187 8601600 1100
141131476 evoxtorm B Dec. 29, 2021, 6:18 p.m. OK PyPy 3-64 TESTS 15 202 8601600 1100
141177753 IkshitG B Dec. 30, 2021, 3:50 p.m. OK PyPy 3-64 TESTS 15 217 9420800 1100
141153591 dutt_shouvik B Dec. 30, 2021, 11:26 a.m. OK PyPy 3-64 TESTS 15 249 143052800 1100
141155792 Austin231 B Dec. 30, 2021, 11:49 a.m. OK PyPy 3-64 TESTS 15 264 18022400 1100
141168699 strange-creator B Dec. 30, 2021, 2:07 p.m. OK PyPy 3-64 TESTS 15 327 12902400 1100
141195723 Het_Fadia B Dec. 30, 2021, 7:48 p.m. OK PyPy 3-64 TESTS 15 342 27750400 1100
141195169 Snailz B Dec. 30, 2021, 7:38 p.m. OK PyPy 3-64 TESTS 15 343 11878400 1100
141208524 happywater B Dec. 31, 2021, 3:09 a.m. OK PyPy 3-64 TESTS 15 358 9318400 1100
141130365 OLOGY B Dec. 29, 2021, 6:10 p.m. OK Python 2 TESTS 15 62 921600 1100
141190373 Rashee B Dec. 30, 2021, 6:25 p.m. OK Python 3 TESTS 15 93 716800 1100
141132849 snape_here B Dec. 29, 2021, 6:29 p.m. OK Python 3 TESTS 15 109 1843200 1100
141131792 Ahmed_Turkman B Dec. 29, 2021, 6:21 p.m. OK Python 3 TESTS 15 124 204800 1100
141132382 RoattTilma B Dec. 29, 2021, 6:25 p.m. OK Python 3 TESTS 15 124 512000 1100
141132162 Ahmed_Turkman B Dec. 29, 2021, 6:23 p.m. OK Python 3 TESTS 15 139 307200 1100
141170530 the_emerging_coder B Dec. 30, 2021, 2:24 p.m. OK Python 3 TESTS 15 139 512000 1100
141165872 MistaAsh B Dec. 30, 2021, 1:38 p.m. OK Python 3 TESTS 15 139 512000 1100
141173467 priyankapaleti1220 B Dec. 30, 2021, 2:59 p.m. OK Python 3 TESTS 15 140 307200 1100
141197177 YashNandwana B Dec. 30, 2021, 8:16 p.m. OK Python 3 TESTS 15 140 409600 1100
141152133 abhaumik24 B Dec. 30, 2021, 11:14 a.m. OK Python 3 TESTS 15 140 409600 1100
141152235 Spheniscine B Dec. 30, 2021, 11:15 a.m. OK Rust 2021 TESTS 15 15 409600 1100
141190148 qwerty787788 B Dec. 30, 2021, 6:22 p.m. OK Rust 2021 TESTS 15 30 716800 1100

remove filters

Back to search problems