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 |
---|---|---|---|---|---|---|
1610 | Codeforces Global Round 17 | FINISHED | False | 10800 | 99501863 | Nov. 23, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 16668 ) | B | Kalindrome Array | PROGRAMMING | greedy two pointers |
B"An array [b_1, b_2, ldots, b_m] is a palindrome, if b_i = b_{m+1-i} for each i from 1 to m . Empty array is also a palindrome. An array is called kalindrome, if the following condition holds: It's possible to select some integer x and delete some of the elements of the array equal to x , so that the remaining array (after gluing together the remaining parts) is a palindrome. Note that you don't have to delete all elements equal to x , and you don't have to delete at least one element equal to x . For example : You are given an array [a_1, a_2, ldots, a_n] . Determine if a is kalindrome or not. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the length of the array. The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= n ) -- elements of the array. It's guaranteed that the sum of n over all test cases won't exceed 2 cdot 10^5 . For each test case, print YES if a is kalindrome and NO otherwise. You can print each letter in any case. In the first test case, array [1] is already a palindrome, so it's a kalindrome as well. In the second test case, we can choose x = 2 , delete the second element, and obtain array [1] , which is a palindrome. In the third test case, it's impossible to obtain a palindrome. In the fourth test case, you can choose x = 4 and delete the fifth element, obtaining [1, 4, 4, 1] . You also can choose x = 1 , delete the first and the fourth elements, and obtain [4, 4, 4] . "... |
Codeforces Global Round 17 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
136693299 | gxlois | B | Nov. 23, 2021, 10:33 p.m. | OK | D | TESTS | 19 | 46 | 4198400 | ||
136666776 | 1435730 | B | Nov. 23, 2021, 4:26 p.m. | OK | GNU C11 | TESTS | 19 | 46 | 819200 | ||
136708233 | dianzikejidaxue | B | Nov. 24, 2021, 5:53 a.m. | OK | GNU C11 | TESTS | 19 | 62 | 819200 | ||
136676497 | Zarif_Mustafa | B | Nov. 23, 2021, 5:19 p.m. | OK | GNU C11 | TESTS | 19 | 62 | 2355200 | ||
136664611 | urvish_pujara | B | Nov. 23, 2021, 4:16 p.m. | OK | GNU C11 | TESTS | 19 | 62 | 2355200 | ||
136681537 | Abhishekverma7887 | B | Nov. 23, 2021, 6:02 p.m. | OK | GNU C++14 | TESTS | 19 | 46 | 819200 | ||
136684001 | Wi_Es | B | Nov. 23, 2021, 6:35 p.m. | OK | GNU C++14 | TESTS | 19 | 46 | 819200 | ||
136687807 | Tornado2004 | B | Nov. 23, 2021, 7:45 p.m. | OK | GNU C++14 | TESTS | 19 | 46 | 819200 | ||
136668211 | Bharat1999 | B | Nov. 23, 2021, 4:33 p.m. | OK | GNU C++14 | TESTS | 19 | 46 | 1638400 | ||
136666244 | DovahkiinGA | B | Nov. 23, 2021, 4:23 p.m. | OK | GNU C++14 | TESTS | 19 | 46 | 1638400 | ||
136708504 | QiuHong | B | Nov. 24, 2021, 5:57 a.m. | OK | GNU C++14 | TESTS | 19 | 46 | 1638400 | ||
136703554 | lixuanta | B | Nov. 24, 2021, 4:28 a.m. | OK | GNU C++14 | TESTS | 19 | 46 | 1638400 | ||
136696211 | asta_123 | B | Nov. 24, 2021, 1 a.m. | OK | GNU C++14 | TESTS | 19 | 46 | 1638400 | ||
136708618 | QiuHong | B | Nov. 24, 2021, 5:59 a.m. | OK | GNU C++14 | TESTS | 20 | 46 | 1638400 | ||
136675023 | bhaveshaggarwal20 | B | Nov. 23, 2021, 5:10 p.m. | OK | GNU C++14 | TESTS | 19 | 46 | 2457600 | ||
136694921 | niyuzheNO1 | B | Nov. 23, 2021, 11:59 p.m. | OK | GNU C++17 | TESTS | 19 | 15 | 3686400 | ||
136702995 | Bzdhxs_nt | B | Nov. 24, 2021, 4:16 a.m. | OK | GNU C++17 | TESTS | 19 | 46 | 819200 | ||
136700949 | SuFame_CF_Only | B | Nov. 24, 2021, 3:30 a.m. | OK | GNU C++17 | TESTS | 19 | 46 | 819200 | ||
136684920 | Ritik_singh30 | B | Nov. 23, 2021, 6:50 p.m. | OK | GNU C++17 | TESTS | 19 | 46 | 819200 | ||
136683542 | JPOS | B | Nov. 23, 2021, 6:29 p.m. | OK | GNU C++17 | TESTS | 19 | 46 | 819200 | ||
136704708 | rbl_p | B | Nov. 24, 2021, 4:54 a.m. | OK | GNU C++17 | TESTS | 19 | 46 | 819200 | ||
136681725 | ankit19409 | B | Nov. 23, 2021, 6:05 p.m. | OK | GNU C++17 | TESTS | 19 | 46 | 819200 | ||
136680873 | d283gandhi | B | Nov. 23, 2021, 5:56 p.m. | OK | GNU C++17 | TESTS | 19 | 46 | 819200 | ||
136682173 | Terpodia | B | Nov. 23, 2021, 6:10 p.m. | OK | GNU C++17 | TESTS | 19 | 46 | 819200 | ||
136704026 | ayus1410 | B | Nov. 24, 2021, 4:40 a.m. | OK | GNU C++17 | TESTS | 19 | 46 | 819200 | ||
136695366 | AnNotShy | B | Nov. 24, 2021, 12:21 a.m. | OK | GNU C++17 (64) | TESTS | 19 | 31 | 1638400 | ||
136690673 | jt.cheng26_orz | B | Nov. 23, 2021, 8:51 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 31 | 6758400 | ||
136692709 | GreenTourist | B | Nov. 23, 2021, 10:05 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 819200 | ||
136701593 | ABCsfree | B | Nov. 24, 2021, 3:43 a.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 819200 | ||
136697342 | Neal_lee | B | Nov. 24, 2021, 1:44 a.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 819200 | ||
136691989 | chika10 | B | Nov. 23, 2021, 9:37 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 819200 | ||
136691813 | chika10 | B | Nov. 23, 2021, 9:30 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 819200 | ||
136690865 | AbdalrhmanEssam | B | Nov. 23, 2021, 8:58 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 819200 | ||
136687456 | captainxop | B | Nov. 23, 2021, 7:37 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 819200 | ||
136682923 | werus23 | B | Nov. 23, 2021, 6:20 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 819200 | ||
136662212 | computering_666 | B | Nov. 23, 2021, 4:06 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 819200 | ||
136681218 | mdstoy | B | Nov. 23, 2021, 5:59 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 819200 | ||
136682480 | gleb32 | B | Nov. 23, 2021, 6:14 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 819200 | ||
136695928 | SOKURITSZZ | B | Nov. 24, 2021, 12:47 a.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 819200 | ||
136704836 | mayank_singh_ | B | Nov. 24, 2021, 4:56 a.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 1638400 | ||
136692315 | kp1409 | B | Nov. 23, 2021, 9:50 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 1638400 | ||
136661435 | Rishi24 | B | Nov. 23, 2021, 4:04 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 1638400 | ||
136680707 | fatemetmhr | B | Nov. 23, 2021, 5:54 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 2048000 | ||
136684697 | Anish_aak | B | Nov. 23, 2021, 6:46 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 2457600 | ||
136708351 | wjyue2001 | B | Nov. 24, 2021, 5:55 a.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 2969600 | ||
136705966 | solo07 | B | Nov. 24, 2021, 5:17 a.m. | OK | Java 11 | TESTS | 19 | 171 | 0 | ||
136690172 | gourav02 | B | Nov. 23, 2021, 8:36 p.m. | OK | Java 11 | TESTS | 19 | 186 | 0 | ||
136664476 | souvik2000 | B | Nov. 23, 2021, 4:16 p.m. | OK | Java 11 | TESTS | 19 | 187 | 0 | ||
136688363 | tusharpruth | B | Nov. 23, 2021, 7:56 p.m. | OK | Java 11 | TESTS | 19 | 202 | 0 | ||
136687589 | prituladima | B | Nov. 23, 2021, 7:40 p.m. | OK | Java 11 | TESTS | 19 | 202 | 0 | ||
136687247 | SOME_ONEE | B | Nov. 23, 2021, 7:33 p.m. | OK | Java 11 | TESTS | 19 | 202 | 0 | ||
136705495 | Mrrahulrc | B | Nov. 24, 2021, 5:08 a.m. | OK | Java 11 | TESTS | 19 | 202 | 0 | ||
136703848 | the_unseen | B | Nov. 24, 2021, 4:36 a.m. | OK | Java 11 | TESTS | 19 | 202 | 0 | ||
136703281 | krishnmohan19 | B | Nov. 24, 2021, 4:23 a.m. | OK | Java 11 | TESTS | 19 | 202 | 0 | ||
136690615 | dhruvil_01 | B | Nov. 23, 2021, 8:49 p.m. | OK | Java 11 | TESTS | 19 | 202 | 0 | ||
136701503 | vaibhav_1710 | B | Nov. 24, 2021, 3:42 a.m. | OK | Java 8 | TESTS | 19 | 140 | 1843200 | ||
136669041 | suyash.211.sn | B | Nov. 23, 2021, 4:37 p.m. | OK | Java 8 | TESTS | 19 | 140 | 1945600 | ||
136669831 | stellar_80 | B | Nov. 23, 2021, 4:41 p.m. | OK | Java 8 | TESTS | 19 | 155 | 1945600 | ||
136661364 | honeysingh18 | B | Nov. 23, 2021, 4:03 p.m. | OK | Java 8 | TESTS | 19 | 155 | 1945600 | ||
136704491 | amit_roy | B | Nov. 24, 2021, 4:49 a.m. | OK | Java 8 | TESTS | 19 | 155 | 2969600 | ||
136686640 | vivek1401 | B | Nov. 23, 2021, 7:21 p.m. | OK | Java 8 | TESTS | 19 | 155 | 3481600 | ||
136704482 | 2020akadaver | B | Nov. 24, 2021, 4:49 a.m. | OK | Java 8 | TESTS | 19 | 155 | 3788800 | ||
136670454 | Piyushnagpal80 | B | Nov. 23, 2021, 4:44 p.m. | OK | Java 8 | TESTS | 19 | 156 | 1945600 | ||
136699725 | Maikyh04 | B | Nov. 24, 2021, 2:59 a.m. | OK | Java 8 | TESTS | 19 | 170 | 0 | ||
136674815 | nitinrishab2000 | B | Nov. 23, 2021, 5:09 p.m. | OK | Java 8 | TESTS | 19 | 170 | 2764800 | ||
136675288 | mr.varga | B | Nov. 23, 2021, 5:12 p.m. | OK | Kotlin 1.4 | TESTS | 19 | 264 | 15155200 | ||
136699697 | huy.caohuyhuy123 | B | Nov. 24, 2021, 2:58 a.m. | OK | Kotlin 1.5 | TESTS | 19 | 358 | 15974400 | ||
136698394 | thonns178 | B | Nov. 24, 2021, 2:20 a.m. | OK | MS C++ 2017 | TESTS | 19 | 140 | 819200 | ||
136696636 | scnu_sss | B | Nov. 24, 2021, 1:18 a.m. | OK | MS C++ 2017 | TESTS | 19 | 140 | 1638400 | ||
136675808 | Claude1 | B | Nov. 23, 2021, 5:15 p.m. | OK | MS C++ 2017 | TESTS | 19 | 156 | 819200 | ||
136667539 | vladar34 | B | Nov. 23, 2021, 4:29 p.m. | OK | MS C++ 2017 | TESTS | 19 | 171 | 1638400 | ||
136702655 | A_Pier | B | Nov. 24, 2021, 4:08 a.m. | OK | MS C++ 2017 | TESTS | 19 | 171 | 1638400 | ||
136700063 | seuangelfish | B | Nov. 24, 2021, 3:07 a.m. | OK | MS C++ 2017 | TESTS | 19 | 171 | 3072000 | ||
136695346 | Torehalt | B | Nov. 24, 2021, 12:20 a.m. | OK | MS C++ 2017 | TESTS | 19 | 171 | 3174400 | ||
136678115 | MrSemyon12 | B | Nov. 23, 2021, 5:29 p.m. | OK | MS C++ 2017 | TESTS | 19 | 171 | 3379200 | ||
136676607 | Himer | B | Nov. 23, 2021, 5:20 p.m. | OK | MS C++ 2017 | TESTS | 19 | 187 | 3379200 | ||
136678392 | Maxaontrix | B | Nov. 23, 2021, 5:30 p.m. | OK | MS C++ 2017 | TESTS | 19 | 187 | 5017600 | ||
136674713 | Kopeykin | B | Nov. 23, 2021, 5:08 p.m. | OK | .NET Core C# | TESTS | 19 | 109 | 15667200 | ||
136661296 | thetansquared | B | Nov. 23, 2021, 4:03 p.m. | OK | .NET Core C# | TESTS | 19 | 124 | 14745600 | ||
136665444 | dotdot11 | B | Nov. 23, 2021, 4:20 p.m. | OK | Node.js | TESTS | 19 | 311 | 30105600 | ||
136667335 | wandrer | B | Nov. 23, 2021, 4:28 p.m. | OK | PyPy 3 | TESTS | 19 | 140 | 18022400 | ||
136681644 | AbnerShen | B | Nov. 23, 2021, 6:03 p.m. | OK | PyPy 3 | TESTS | 19 | 171 | 16076800 | ||
136682233 | KanishkGoel | B | Nov. 23, 2021, 6:11 p.m. | OK | PyPy 3 | TESTS | 19 | 217 | 19353600 | ||
136681576 | AbnerShen | B | Nov. 23, 2021, 6:03 p.m. | OK | PyPy 3 | TESTS | 19 | 233 | 19046400 | ||
136697438 | Liberator187 | B | Nov. 24, 2021, 1:48 a.m. | OK | PyPy 3 | TESTS | 19 | 280 | 18124800 | ||
136662510 | gennadylaptev | B | Nov. 23, 2021, 4:08 p.m. | OK | PyPy 3 | TESTS | 19 | 358 | 17817600 | ||
136667950 | rocker143 | B | Nov. 23, 2021, 4:32 p.m. | OK | PyPy 3 | TESTS | 19 | 373 | 19353600 | ||
136702579 | saurabhbisht | B | Nov. 24, 2021, 4:06 a.m. | OK | PyPy 3 | TESTS | 19 | 389 | 20684800 | ||
136672038 | aayush0501200 | B | Nov. 23, 2021, 4:53 p.m. | OK | PyPy 3 | TESTS | 19 | 390 | 15769600 | ||
136665824 | hunter102 | B | Nov. 23, 2021, 4:21 p.m. | OK | PyPy 3 | TESTS | 19 | 405 | 14131200 | ||
136683764 | mayank35 | B | Nov. 23, 2021, 6:31 p.m. | OK | PyPy 3-64 | TESTS | 19 | 202 | 28364800 | ||
136706866 | feelme | B | Nov. 24, 2021, 5:32 a.m. | OK | PyPy 3-64 | TESTS | 19 | 202 | 28569600 | ||
136691042 | IkshitG | B | Nov. 23, 2021, 9:03 p.m. | OK | PyPy 3-64 | TESTS | 19 | 218 | 24268800 | ||
136691107 | IkshitG | B | Nov. 23, 2021, 9:05 p.m. | OK | PyPy 3-64 | TESTS | 19 | 218 | 24371200 | ||
136692903 | oadey89 | B | Nov. 23, 2021, 10:15 p.m. | OK | PyPy 3-64 | TESTS | 19 | 249 | 34099200 | ||
136706809 | RiddhiAher | B | Nov. 24, 2021, 5:31 a.m. | OK | PyPy 3-64 | TESTS | 19 | 264 | 25804800 | ||
136690989 | IkshitG | B | Nov. 23, 2021, 9:02 p.m. | OK | PyPy 3-64 | TESTS | 19 | 280 | 23244800 | ||
136684931 | shehebe | B | Nov. 23, 2021, 6:50 p.m. | OK | PyPy 3-64 | TESTS | 19 | 296 | 27033600 | ||
136663669 | tranductri2003 | B | Nov. 23, 2021, 4:12 p.m. | OK | PyPy 3-64 | TESTS | 19 | 311 | 31641600 | ||
136667021 | GaurabD | B | Nov. 23, 2021, 4:27 p.m. | OK | PyPy 3-64 | TESTS | 19 | 358 | 27443200 | ||
136680776 | OLOGY | B | Nov. 23, 2021, 5:55 p.m. | OK | Python 2 | TESTS | 19 | 187 | 11161600 | ||
136690430 | eugalt | B | Nov. 23, 2021, 8:43 p.m. | OK | Python 3 | TESTS | 19 | 139 | 12288000 | ||
136686059 | kavyaaa | B | Nov. 23, 2021, 7:10 p.m. | OK | Python 3 | TESTS | 19 | 140 | 12288000 | ||
136662912 | eugalt | B | Nov. 23, 2021, 4:09 p.m. | OK | Python 3 | TESTS | 19 | 140 | 12288000 | ||
136669925 | i_aman | B | Nov. 23, 2021, 4:41 p.m. | OK | Python 3 | TESTS | 19 | 140 | 14336000 | ||
136692386 | xyxoro | B | Nov. 23, 2021, 9:52 p.m. | OK | Python 3 | TESTS | 19 | 156 | 14438400 | ||
136696385 | Yagnesh_S_Shetty | B | Nov. 24, 2021, 1:08 a.m. | OK | Python 3 | TESTS | 19 | 186 | 14028800 | ||
136673007 | Danny19 | B | Nov. 23, 2021, 4:58 p.m. | OK | Python 3 | TESTS | 19 | 186 | 14233600 | ||
136684433 | Yusif | B | Nov. 23, 2021, 6:41 p.m. | OK | Python 3 | TESTS | 19 | 187 | 13926400 | ||
136664644 | shivambhagat02 | B | Nov. 23, 2021, 4:16 p.m. | OK | Python 3 | TESTS | 19 | 187 | 14028800 | ||
136670100 | astitva19 | B | Nov. 23, 2021, 4:42 p.m. | OK | Python 3 | TESTS | 19 | 187 | 14233600 | ||
136692444 | kumalimak | B | Nov. 23, 2021, 9:54 p.m. | OK | Rust | TESTS | 19 | 15 | 4198400 | ||
136703096 | mikaelrocks | B | Nov. 24, 2021, 4:18 a.m. | OK | Rust | TESTS | 19 | 15 | 7987200 | ||
136692600 | kumalimak | B | Nov. 23, 2021, 10:01 p.m. | OK | Rust | TESTS | 19 | 31 | 4198400 |
Back to search problems