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 |
---|---|---|---|---|---|---|
1758 | Codeforces Round 836 (Div. 2) | FINISHED | False | 7200 | 67789463 | Nov. 25, 2022, 3:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 25508 ) | A | SSeeeeiinngg DDoouubbllee | PROGRAMMING | constructive algorithms strings |
B'A palindrome is a string that reads the same backward as forward. For example, the strings texttt{z} , texttt{aaa} , texttt{aba} , and texttt{abccba} are palindromes, but texttt{codeforces} and texttt{ab} are not. The double of a string s is obtained by writing each character twice. For example, the double of texttt{seeing} is texttt{sseeeeiinngg} . Given a string s , rearrange its double to form a palindrome. Output the rearranged string. It can be proven that such a rearrangement always exists. The first line of input contains t ( 1 <= q t <= q 1000 ) -- the number of test cases. The only line of each test case contains a single string s ( 1 <= q |s| <= q 100 ) consisting only of lowercase English letters. Note that the sum of |s| over all test cases is not bounded. For each test case, output a palindromic string of length 2 cdot |s| that is a rearrangement of the double of s . In the first test case, the double of texttt{a} is texttt{aa} , which is already a palindrome. In the second test case, the double of texttt{sururu} is texttt{ssuurruurruu} . If we move the first texttt{s} to the end, we get texttt{suurruurruus} , which is a palindrome. In the third test case, the double of texttt{errorgorn} is texttt{eerrrroorrggoorrnn} . We can rearrange the characters to form texttt{rgnororerrerorongr} , which is a palindrome. '... |
Codeforces Round #836 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
182548336 | WAAAAAAAAAAAAAAAAAAAAA | A | Nov. 25, 2022, 6:19 p.m. | OK | C# 10 | TESTS | 3 | 61 | 2867200 | ||
182581772 | chrisfcoder | A | Nov. 26, 2022, 2:03 a.m. | OK | C# 10 | TESTS | 3 | 62 | 1536000 | ||
182564232 | MoustafaAttia | A | Nov. 25, 2022, 8:08 p.m. | OK | C# 8 | TESTS | 3 | 62 | 1024000 | ||
182557563 | FGN06 | A | Nov. 25, 2022, 7:13 p.m. | OK | C# 8 | TESTS | 3 | 77 | 1024000 | ||
182571604 | bluemegane | A | Nov. 25, 2022, 9:42 p.m. | OK | C# 8 | TESTS | 3 | 108 | 3072000 | ||
182577212 | big--head | A | Nov. 25, 2022, 11:49 p.m. | OK | Clang++17 Diagnostics | TESTS | 3 | 31 | 0 | ||
182591441 | ramntry | A | Nov. 26, 2022, 4:43 a.m. | OK | Clang++17 Diagnostics | TESTS | 3 | 46 | 0 | ||
182581245 | pyp | A | Nov. 26, 2022, 1:50 a.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 202 | 12595200 | ||
182588497 | Md._Asif_Samrat | A | Nov. 26, 2022, 4:08 a.m. | OK | GNU C11 | TESTS | 3 | 0 | 0 | ||
182537888 | 01Known | A | Nov. 25, 2022, 5:26 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
182548177 | PaMoJo | A | Nov. 25, 2022, 6:18 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
182540470 | zunaed4014 | A | Nov. 25, 2022, 5:32 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 204800 | ||
182538326 | Jahidul_CSE | A | Nov. 25, 2022, 5:27 p.m. | OK | GNU C11 | TESTS | 3 | 30 | 0 | ||
182537989 | yeasermustabi20018 | A | Nov. 25, 2022, 5:26 p.m. | OK | GNU C11 | TESTS | 3 | 30 | 0 | ||
182546899 | U4K_RYUGA | A | Nov. 25, 2022, 6:12 p.m. | OK | GNU C11 | TESTS | 3 | 30 | 0 | ||
182588440 | BSMRSTU_Blackhole | A | Nov. 26, 2022, 4:07 a.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | ||
182582712 | chenly666 | A | Nov. 26, 2022, 2:24 a.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | ||
182579201 | Jahidul_CSE | A | Nov. 26, 2022, 1:01 a.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | ||
182593885 | 1722087564 | A | Nov. 26, 2022, 5:11 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
182583224 | Aurora- | A | Nov. 26, 2022, 2:33 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
182577620 | Arcan3 | A | Nov. 26, 2022, 12:05 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
182577425 | juruowtcl | A | Nov. 25, 2022, 11:58 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
182566307 | moaiad.abdulsalam | A | Nov. 25, 2022, 8:29 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
182555500 | maruf74208 | A | Nov. 25, 2022, 6:59 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
182546801 | __Errors__ | A | Nov. 25, 2022, 6:11 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
182545823 | AleksaMaster | A | Nov. 25, 2022, 6:07 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
182594818 | wust-zzl | A | Nov. 26, 2022, 5:21 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
182583824 | Cycyes | A | Nov. 26, 2022, 2:45 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 102400 | ||
182584417 | Kotoriqaq | A | Nov. 26, 2022, 2:57 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
182588544 | AG__ | A | Nov. 26, 2022, 4:08 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
182588894 | pict1115 | A | Nov. 26, 2022, 4:13 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
182592056 | 2000_AHS_sustswe18_72 | A | Nov. 26, 2022, 4:51 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
182594059 | Haven_ | A | Nov. 26, 2022, 5:13 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
182594228 | kiochi | A | Nov. 26, 2022, 5:14 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
182595616 | fuwad | A | Nov. 26, 2022, 5:29 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
182597546 | peanutbutter1 | A | Nov. 26, 2022, 5:49 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
182582773 | xueque | A | Nov. 26, 2022, 2:25 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
182583343 | ancorp | A | Nov. 26, 2022, 2:35 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
182587079 | pursuit_of_happiness | A | Nov. 26, 2022, 3:45 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
182598123 | fexla | A | Nov. 26, 2022, 5:54 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
182595945 | WA_automata | A | Nov. 26, 2022, 5:32 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
182587770 | zhgdge | A | Nov. 26, 2022, 3:56 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
182586461 | Yash_Mehar | A | Nov. 26, 2022, 3:35 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
182584443 | hhh3 | A | Nov. 26, 2022, 2:58 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
182582133 | haengsyo | A | Nov. 26, 2022, 2:11 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
182575144 | vidhit_Patel | A | Nov. 25, 2022, 11:03 p.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
182575125 | Awesome3.14 | A | Nov. 25, 2022, 11:02 p.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
182569363 | MagedTarek | A | Nov. 25, 2022, 9:07 p.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
182590813 | enzopsm | A | Nov. 26, 2022, 4:36 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
182591233 | register2601 | A | Nov. 26, 2022, 4:41 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
182592072 | Sudo-Ku | A | Nov. 26, 2022, 4:51 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
182592280 | pei_pei_ | A | Nov. 26, 2022, 4:53 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
182592359 | 106_and_1473 | A | Nov. 26, 2022, 4:54 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
182594962 | me_poojan23 | A | Nov. 26, 2022, 5:22 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
182595132 | vedant_1 | A | Nov. 26, 2022, 5:24 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
182595394 | chinh31503 | A | Nov. 26, 2022, 5:27 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
182597885 | xls_is_real_dd | A | Nov. 26, 2022, 5:52 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
182597907 | fishcathu. | A | Nov. 26, 2022, 5:52 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
182578307 | tongtongac | A | Nov. 26, 2022, 12:31 a.m. | OK | Go | TESTS | 3 | 15 | 614400 | ||
182579947 | pepradere | A | Nov. 26, 2022, 1:21 a.m. | OK | Go | TESTS | 3 | 31 | 5017600 | ||
182592408 | __Serendipity | A | Nov. 26, 2022, 4:55 a.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | ||
182551321 | fishy15 | A | Nov. 25, 2022, 6:34 p.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | ||
182588326 | mmustafoyev9 | A | Nov. 26, 2022, 4:05 a.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | ||
182593783 | davronbekabdulkhamidov | A | Nov. 26, 2022, 5:10 a.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | ||
182588504 | gol1bjon | A | Nov. 26, 2022, 4:08 a.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | ||
182578193 | mcrash12 | A | Nov. 26, 2022, 12:26 a.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | ||
182551081 | praduman14 | A | Nov. 25, 2022, 6:33 p.m. | OK | Java 11 | TESTS | 3 | 187 | 0 | ||
182551608 | ilasiawo | A | Nov. 25, 2022, 6:36 p.m. | OK | Java 11 | TESTS | 3 | 187 | 0 | ||
182547388 | Ahmed_Amine | A | Nov. 25, 2022, 6:14 p.m. | OK | Java 11 | TESTS | 3 | 187 | 0 | ||
182588621 | kartik_941 | A | Nov. 26, 2022, 4:09 a.m. | OK | Java 11 | TESTS | 3 | 202 | 0 | ||
182533011 | woodyiiiiiii | A | Nov. 25, 2022, 5:14 p.m. | OK | Java 17 | TESTS | 3 | 187 | 0 | ||
182594270 | irachit0702 | A | Nov. 26, 2022, 5:15 a.m. | OK | Java 17 | TESTS | 3 | 187 | 307200 | ||
182560025 | snEAky_C | A | Nov. 25, 2022, 7:31 p.m. | OK | Java 17 | TESTS | 3 | 187 | 409600 | ||
182549613 | balajirudrawar123 | A | Nov. 25, 2022, 6:25 p.m. | OK | Java 17 | TESTS | 3 | 187 | 409600 | ||
182580956 | -Jarvis- | A | Nov. 26, 2022, 1:44 a.m. | OK | Java 17 | TESTS | 3 | 202 | 307200 | ||
182584879 | JoseDavid | A | Nov. 26, 2022, 3:06 a.m. | OK | Java 17 | TESTS | 3 | 218 | 512000 | ||
182596343 | Jay_17 | A | Nov. 26, 2022, 5:37 a.m. | OK | Java 17 | TESTS | 3 | 233 | 0 | ||
182559043 | Saksham0109 | A | Nov. 25, 2022, 7:24 p.m. | OK | Java 17 | TESTS | 3 | 233 | 0 | ||
182536206 | Vertigo_507 | A | Nov. 25, 2022, 5:22 p.m. | OK | Java 17 | TESTS | 3 | 233 | 307200 | ||
182550417 | Eslam_Ahmed | A | Nov. 25, 2022, 6:29 p.m. | OK | Java 17 | TESTS | 3 | 249 | 102400 | ||
182562840 | Mohamed308 | A | Nov. 25, 2022, 7:55 p.m. | OK | Java 8 | TESTS | 3 | 77 | 0 | ||
182550329 | Abdallah_Ragab00 | A | Nov. 25, 2022, 6:29 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
182550353 | _NursultaN_ | A | Nov. 25, 2022, 6:29 p.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | ||
182569541 | ItsZaki | A | Nov. 25, 2022, 9:09 p.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | ||
182545573 | adeon | A | Nov. 25, 2022, 6:06 p.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | ||
182569798 | mohamedhassan_c | A | Nov. 25, 2022, 9:13 p.m. | OK | Java 8 | TESTS | 3 | 109 | 0 | ||
182546652 | toufique_husein | A | Nov. 25, 2022, 6:11 p.m. | OK | Java 8 | TESTS | 3 | 109 | 0 | ||
182539525 | rx513 | A | Nov. 25, 2022, 5:30 p.m. | OK | Java 8 | TESTS | 3 | 109 | 0 | ||
182584749 | wty-Bryant | A | Nov. 26, 2022, 3:04 a.m. | OK | Java 8 | TESTS | 3 | 140 | 0 | ||
182596082 | Yeleke | A | Nov. 26, 2022, 5:34 a.m. | OK | Java 8 | TESTS | 3 | 140 | 0 | ||
182566629 | Krantzy | A | Nov. 25, 2022, 8:33 p.m. | OK | Kotlin 1.7 | TESTS | 3 | 404 | 9523200 | ||
182557737 | aRaha_0_0 | A | Nov. 25, 2022, 7:14 p.m. | OK | Mono C# | TESTS | 3 | 311 | 204800 | ||
182546838 | MausitoPro | A | Nov. 25, 2022, 6:11 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 307200 | ||
182547784 | Danbbler | A | Nov. 25, 2022, 6:16 p.m. | OK | MS C++ 2017 | TESTS | 3 | 30 | 0 | ||
182577822 | gkin | A | Nov. 26, 2022, 12:12 a.m. | OK | MS C++ 2017 | TESTS | 3 | 31 | 0 | ||
182553606 | abdulkader_haffar | A | Nov. 25, 2022, 6:47 p.m. | OK | MS C++ 2017 | TESTS | 3 | 31 | 0 | ||
182547621 | rsFalse | A | Nov. 25, 2022, 6:15 p.m. | OK | Perl | TESTS | 3 | 15 | 0 | ||
182549247 | rsFalse | A | Nov. 25, 2022, 6:23 p.m. | OK | Perl | TESTS | 3 | 15 | 0 | ||
182556644 | Justin_Foley | A | Nov. 25, 2022, 7:07 p.m. | OK | PyPy 3 | TESTS | 3 | 93 | 3174400 | ||
182569818 | WalrusRamen21 | A | Nov. 25, 2022, 9:13 p.m. | OK | PyPy 3 | TESTS | 3 | 108 | 1945600 | ||
182554449 | jaytau | A | Nov. 25, 2022, 6:52 p.m. | OK | PyPy 3 | TESTS | 3 | 108 | 3276800 | ||
182551219 | manish.17 | A | Nov. 25, 2022, 6:33 p.m. | OK | PyPy 3 | TESTS | 3 | 108 | 3276800 | ||
182546556 | torqueaj | A | Nov. 25, 2022, 6:10 p.m. | OK | PyPy 3 | TESTS | 3 | 124 | 3276800 | ||
182569779 | uz2ee | A | Nov. 25, 2022, 9:13 p.m. | OK | PyPy 3 | TESTS | 3 | 139 | 3276800 | ||
182586312 | Ench_Lolz | A | Nov. 26, 2022, 3:32 a.m. | OK | PyPy 3 | TESTS | 3 | 140 | 3276800 | ||
182583007 | __J__ | A | Nov. 26, 2022, 2:29 a.m. | OK | PyPy 3 | TESTS | 3 | 140 | 3276800 | ||
182569630 | WalrusRamen21 | A | Nov. 25, 2022, 9:10 p.m. | OK | PyPy 3 | TESTS | 3 | 140 | 3276800 | ||
182545565 | WHg00 | A | Nov. 25, 2022, 6:06 p.m. | OK | PyPy 3 | TESTS | 3 | 140 | 3276800 | ||
182532280 | titia | A | Nov. 25, 2022, 5:12 p.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 1945600 | ||
182549795 | hkwu6013 | A | Nov. 25, 2022, 6:26 p.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 2048000 | ||
182570265 | SeniorLikeToCode | A | Nov. 25, 2022, 9:20 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 1843200 | ||
182553838 | m0tbka | A | Nov. 25, 2022, 6:48 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 1843200 | ||
182550024 | Mohamed_yousef2024 | A | Nov. 25, 2022, 6:27 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 1843200 | ||
182552071 | riroan | A | Nov. 25, 2022, 6:38 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 1945600 | ||
182577398 | 8by8 | A | Nov. 25, 2022, 11:57 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 2764800 | ||
182584020 | wxl2118579805 | A | Nov. 26, 2022, 2:49 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 3481600 | ||
182585942 | The_MazeRunner | A | Nov. 26, 2022, 3:26 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 4096000 | ||
182593165 | shock_wav3 | A | Nov. 26, 2022, 5:03 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 4198400 | ||
182591686 | Kirill_Kazantsev | A | Nov. 26, 2022, 4:46 a.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | ||
182590616 | Amaan330 | A | Nov. 26, 2022, 4:34 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
182584189 | Tushar281 | A | Nov. 26, 2022, 2:52 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
182578139 | mguliyev12360 | A | Nov. 26, 2022, 12:24 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
182577563 | Ajay_kmr | A | Nov. 26, 2022, 12:03 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
182558340 | MohaSa | A | Nov. 25, 2022, 7:19 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
182550770 | IronMan_P0 | A | Nov. 25, 2022, 6:31 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
182546260 | Bispo | A | Nov. 25, 2022, 6:09 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
182593836 | The_Grateful_Death | A | Nov. 26, 2022, 5:10 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
182593128 | kshqsz | A | Nov. 26, 2022, 5:03 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
182572933 | SuperMatej999 | A | Nov. 25, 2022, 10:08 p.m. | OK | Rust 2021 | TESTS | 3 | 31 | 0 |
Back to search problems