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 |
---|---|---|---|---|---|---|
1620 | Educational Codeforces Round 119 (Rated for Div. 2) | FINISHED | False | 7200 | 97338263 | Dec. 18, 2021, 3:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 21769 ) | A | Equal or Not Equal | PROGRAMMING | constructive algorithms implementation |
B"You had n positive integers a_1, a_2, ... , a_n arranged in a circle. For each pair of neighboring numbers ( a_1 and a_2 , a_2 and a_3 , ..., a_{n - 1} and a_n , and a_n and a_1 ), you wrote down: are the numbers in the pair equal or not. Unfortunately, you've lost a piece of paper with the array a . Moreover, you are afraid that even information about equality of neighboring elements may be inconsistent. So, you are wondering: is there any array a which is consistent with information you have about equality or non-equality of corresponding pairs? The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. Next t cases follow. The first and only line of each test case contains a non-empty string s consisting of characters E and/or N. The length of s is equal to the size of array n and 2 <= n <= 50 . For each i from 1 to n : For each test case, print YES if it's possible to choose array a that are consistent with information from s you know. Otherwise, print NO. It can be proved, that if there exists some array a , then there exists an array a of positive integers with values less or equal to 10^9 . In the first test case, you can choose, for example, a_1 = a_2 = a_3 = 5 . In the second test case, there is no array a , since, according to s_1 , a_1 is equal to a_2 , but, according to s_2 , a_2 is not equal to a_1 . In the third test case, you can, for example, choose array a = [20, 20, 4, 50, 50, 50, 20] . In the fourth test case, you can, for example, choose a = [1, 3, 3, 7] . "... |
98061 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
139854857 | sahilchaudhari2405 | A | Dec. 19, 2021, 4:50 a.m. | OK | Clang++17 Diagnostics | TESTS | 8 | 46 | 0 | ||
139935985 | nfcl | A | Dec. 20, 2021, 1:12 a.m. | OK | Clang++17 Diagnostics | TESTS | 8 | 46 | 0 | ||
139833833 | ElHoS | A | Dec. 18, 2021, 7:25 p.m. | OK | Clang++17 Diagnostics | TESTS | 8 | 46 | 0 | ||
139842717 | gxlois | A | Dec. 18, 2021, 10:09 p.m. | OK | D | TESTS | 8 | 15 | 0 | ||
139851998 | ssvb | A | Dec. 19, 2021, 3:42 a.m. | OK | D | TESTS | 8 | 15 | 0 | ||
139856548 | onnstion49 | A | Dec. 19, 2021, 5:22 a.m. | OK | GNU C11 | TESTS | 8 | 15 | 0 | ||
139869745 | Googies | A | Dec. 19, 2021, 8:25 a.m. | OK | GNU C11 | TESTS | 8 | 15 | 0 | ||
139870368 | hsuanchia | A | Dec. 19, 2021, 8:33 a.m. | OK | GNU C11 | TESTS | 8 | 15 | 0 | ||
139877502 | huaaa | A | Dec. 19, 2021, 10:01 a.m. | OK | GNU C11 | TESTS | 8 | 15 | 0 | ||
139903023 | klimisnotmilk | A | Dec. 19, 2021, 2:24 p.m. | OK | GNU C11 | TESTS | 8 | 15 | 0 | ||
139898589 | ranajay206 | A | Dec. 19, 2021, 1:37 p.m. | OK | GNU C11 | TESTS | 8 | 15 | 0 | ||
139849700 | shrimpno1 | A | Dec. 19, 2021, 2:33 a.m. | OK | GNU C11 | TESTS | 8 | 15 | 0 | ||
139910921 | what__is_love | A | Dec. 19, 2021, 4:08 p.m. | OK | GNU C11 | TESTS | 8 | 15 | 0 | ||
139949056 | astaCMR | A | Dec. 20, 2021, 3:42 a.m. | OK | GNU C11 | TESTS | 8 | 15 | 0 | ||
139960699 | trietchan | A | Dec. 20, 2021, 5:40 a.m. | OK | GNU C11 | TESTS | 8 | 15 | 0 | ||
139950198 | araragi_koyo | A | Dec. 20, 2021, 4:18 a.m. | OK | GNU C++14 | TESTS | 8 | 0 | 0 | ||
139937753 | wrc | A | Dec. 20, 2021, 2:36 a.m. | OK | GNU C++14 | TESTS | 8 | 0 | 0 | ||
139935735 | NCU_lxq | A | Dec. 20, 2021, 12:59 a.m. | OK | GNU C++14 | TESTS | 8 | 0 | 0 | ||
139906528 | Tutul_dhar | A | Dec. 19, 2021, 3:08 p.m. | OK | GNU C++14 | TESTS | 8 | 0 | 0 | ||
139902405 | blind_eyes | A | Dec. 19, 2021, 2:17 p.m. | OK | GNU C++14 | TESTS | 8 | 0 | 0 | ||
139899528 | 14ranasafal | A | Dec. 19, 2021, 1:47 p.m. | OK | GNU C++14 | TESTS | 8 | 0 | 0 | ||
139898097 | Land_ER | A | Dec. 19, 2021, 1:31 p.m. | OK | GNU C++14 | TESTS | 8 | 0 | 0 | ||
139966322 | luogu_bot1 | A | Dec. 20, 2021, 5:58 a.m. | OK | GNU C++14 | TESTS | 8 | 0 | 0 | ||
139952504 | sjain108 | A | Dec. 20, 2021, 5:11 a.m. | OK | GNU C++14 | TESTS | 8 | 0 | 0 | ||
139952111 | notjustdude | A | Dec. 20, 2021, 5:03 a.m. | OK | GNU C++14 | TESTS | 8 | 0 | 0 | ||
139928104 | nazariibihniak | A | Dec. 19, 2021, 8:30 p.m. | OK | GNU C++17 | TESTS | 8 | 0 | 0 | ||
139948012 | vanloc1808 | A | Dec. 20, 2021, 3:06 a.m. | OK | GNU C++17 | TESTS | 8 | 0 | 0 | ||
139951225 | Durgansh | A | Dec. 20, 2021, 4:44 a.m. | OK | GNU C++17 | TESTS | 8 | 0 | 0 | ||
139952551 | _awwwsme_ | A | Dec. 20, 2021, 5:12 a.m. | OK | GNU C++17 | TESTS | 8 | 0 | 0 | ||
139952609 | Ngu_ | A | Dec. 20, 2021, 5:13 a.m. | OK | GNU C++17 | TESTS | 8 | 0 | 0 | ||
139958480 | Kajolsks | A | Dec. 20, 2021, 5:36 a.m. | OK | GNU C++17 | TESTS | 8 | 0 | 0 | ||
139965650 | VasuOberoi | A | Dec. 20, 2021, 5:46 a.m. | OK | GNU C++17 | TESTS | 8 | 0 | 0 | ||
139936588 | NoNameUwU | A | Dec. 20, 2021, 1:44 a.m. | OK | GNU C++17 | TESTS | 8 | 0 | 0 | ||
139932117 | lonewolf_1612 | A | Dec. 19, 2021, 10:14 p.m. | OK | GNU C++17 | TESTS | 8 | 0 | 0 | ||
139930132 | M7Khouli | A | Dec. 19, 2021, 9:21 p.m. | OK | GNU C++17 | TESTS | 8 | 0 | 0 | ||
139881649 | pcms2 | A | Dec. 19, 2021, 10:53 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 0 | 0 | ||
139965844 | hsekharsahoo | A | Dec. 20, 2021, 5:49 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 0 | 0 | ||
139928987 | M7md_Said | A | Dec. 19, 2021, 8:51 p.m. | OK | GNU C++17 (64) | TESTS | 8 | 0 | 0 | ||
139921377 | Wasifkader | A | Dec. 19, 2021, 6:29 p.m. | OK | GNU C++17 (64) | TESTS | 8 | 0 | 0 | ||
139915893 | bkifhr9 | A | Dec. 19, 2021, 5:15 p.m. | OK | GNU C++17 (64) | TESTS | 8 | 0 | 0 | ||
139912686 | pulkitthegamejoshi | A | Dec. 19, 2021, 4:31 p.m. | OK | GNU C++17 (64) | TESTS | 8 | 0 | 0 | ||
139906538 | manxv7 | A | Dec. 19, 2021, 3:08 p.m. | OK | GNU C++17 (64) | TESTS | 8 | 0 | 0 | ||
139906294 | AnNotShy | A | Dec. 19, 2021, 3:05 p.m. | OK | GNU C++17 (64) | TESTS | 8 | 0 | 0 | ||
139886181 | Arix | A | Dec. 19, 2021, 11:43 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 0 | 0 | ||
139883137 | MAX11189 | A | Dec. 19, 2021, 11:09 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 0 | 0 | ||
139898682 | cc_cai | A | Dec. 19, 2021, 1:38 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 0 | 0 | ||
139900323 | kzo-07-bibarys | A | Dec. 19, 2021, 1:55 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 0 | 0 | ||
139903874 | arpit_275 | A | Dec. 19, 2021, 2:35 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 0 | 0 | ||
139904046 | amirhozaifa | A | Dec. 19, 2021, 2:37 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 0 | 0 | ||
139904164 | De_Choat_ | A | Dec. 19, 2021, 2:38 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 0 | 0 | ||
139919124 | jakubd | A | Dec. 19, 2021, 5:58 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 0 | 0 | ||
139923834 | I_Remember_Olya_ashmelev | A | Dec. 19, 2021, 7:09 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 0 | 0 | ||
139925140 | tdimalion | A | Dec. 19, 2021, 7:32 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 0 | 0 | ||
139950290 | Cleanblue | A | Dec. 20, 2021, 4:20 a.m. | OK | GNU C++20 (64) | TESTS | 8 | 0 | 0 | ||
139951891 | dutinmeow | A | Dec. 20, 2021, 4:59 a.m. | OK | GNU C++20 (64) | TESTS | 8 | 0 | 0 | ||
139853362 | Dmohan | A | Dec. 19, 2021, 4:17 a.m. | OK | Go | TESTS | 8 | 31 | 102400 | ||
139917765 | LeGuitariste | A | Dec. 19, 2021, 5:40 p.m. | OK | Haskell | TESTS | 8 | 15 | 0 | ||
139856467 | Abhinavrajhans | A | Dec. 19, 2021, 5:21 a.m. | OK | Java 11 | TESTS | 8 | 155 | 0 | ||
139917406 | sergioRG | A | Dec. 19, 2021, 5:35 p.m. | OK | Java 11 | TESTS | 8 | 155 | 0 | ||
139907824 | Smorgon | A | Dec. 19, 2021, 3:26 p.m. | OK | Java 11 | TESTS | 8 | 155 | 0 | ||
139880638 | vijender_8601 | A | Dec. 19, 2021, 10:42 a.m. | OK | Java 11 | TESTS | 8 | 155 | 0 | ||
139856213 | Halix | A | Dec. 19, 2021, 5:17 a.m. | OK | Java 11 | TESTS | 8 | 155 | 0 | ||
139885065 | Debojit219 | A | Dec. 19, 2021, 11:32 a.m. | OK | Java 11 | TESTS | 8 | 170 | 0 | ||
139853208 | 17821147 | A | Dec. 19, 2021, 4:13 a.m. | OK | Java 11 | TESTS | 8 | 170 | 0 | ||
139885014 | Debojit219 | A | Dec. 19, 2021, 11:31 a.m. | OK | Java 11 | TESTS | 8 | 171 | 0 | ||
139937174 | subhajitberag5 | A | Dec. 20, 2021, 2:13 a.m. | OK | Java 11 | TESTS | 8 | 171 | 0 | ||
139920232 | watarimaycry2 | A | Dec. 19, 2021, 6:14 p.m. | OK | Java 11 | TESTS | 8 | 171 | 0 | ||
139836317 | smahajan54842 | A | Dec. 18, 2021, 7:58 p.m. | OK | Java 8 | TESTS | 8 | 93 | 0 | ||
139851234 | rnss | A | Dec. 19, 2021, 3:21 a.m. | OK | Java 8 | TESTS | 8 | 93 | 0 | ||
139832501 | imvikas_ji | A | Dec. 18, 2021, 7:08 p.m. | OK | Java 8 | TESTS | 8 | 93 | 0 | ||
139852355 | SecondThread | A | Dec. 19, 2021, 3:51 a.m. | OK | Java 8 | TESTS | 8 | 108 | 0 | ||
139880640 | darvesh_23 | A | Dec. 19, 2021, 10:42 a.m. | OK | Java 8 | TESTS | 8 | 108 | 0 | ||
139847559 | Yuxiang | A | Dec. 19, 2021, 1:19 a.m. | OK | Java 8 | TESTS | 8 | 108 | 0 | ||
139875995 | emkay | A | Dec. 19, 2021, 9:43 a.m. | OK | Java 8 | TESTS | 8 | 109 | 0 | ||
139912980 | solo07 | A | Dec. 19, 2021, 4:35 p.m. | OK | Java 8 | TESTS | 8 | 109 | 0 | ||
139903193 | pranavggupta06 | A | Dec. 19, 2021, 2:26 p.m. | OK | Java 8 | TESTS | 8 | 109 | 0 | ||
139880336 | ruchir28 | A | Dec. 19, 2021, 10:39 a.m. | OK | Java 8 | TESTS | 8 | 109 | 0 | ||
139850354 | lszcnb | A | Dec. 19, 2021, 2:53 a.m. | OK | MS C++ 2017 | TESTS | 8 | 0 | 0 | ||
139875553 | Subrashi316 | A | Dec. 19, 2021, 9:38 a.m. | OK | MS C++ 2017 | TESTS | 8 | 15 | 0 | ||
139957778 | xgk2006805yjy | A | Dec. 20, 2021, 5:29 a.m. | OK | MS C++ 2017 | TESTS | 8 | 15 | 0 | ||
139948157 | _Rimjhim_36 | A | Dec. 20, 2021, 3:11 a.m. | OK | MS C++ 2017 | TESTS | 8 | 15 | 0 | ||
139930961 | huyn1602 | A | Dec. 19, 2021, 9:42 p.m. | OK | MS C++ 2017 | TESTS | 8 | 15 | 0 | ||
139924336 | abajyan01 | A | Dec. 19, 2021, 7:18 p.m. | OK | MS C++ 2017 | TESTS | 8 | 15 | 0 | ||
139915112 | JohnCode | A | Dec. 19, 2021, 5:05 p.m. | OK | MS C++ 2017 | TESTS | 8 | 15 | 0 | ||
139902112 | MiserableWisdom | A | Dec. 19, 2021, 2:14 p.m. | OK | MS C++ 2017 | TESTS | 8 | 15 | 0 | ||
139899182 | misaka12435 | A | Dec. 19, 2021, 1:43 p.m. | OK | MS C++ 2017 | TESTS | 8 | 15 | 0 | ||
139849312 | garrettseo | A | Dec. 19, 2021, 2:19 a.m. | OK | MS C++ 2017 | TESTS | 8 | 15 | 0 | ||
139921946 | serj.planet1 | A | Dec. 19, 2021, 6:38 p.m. | OK | .NET Core C# | TESTS | 8 | 77 | 102400 | ||
139844721 | rsFalse | A | Dec. 18, 2021, 11:14 p.m. | OK | Perl | TESTS | 8 | 15 | 0 | ||
139868194 | guineapig | A | Dec. 19, 2021, 8:04 a.m. | OK | PyPy 3 | TESTS | 8 | 77 | 1638400 | ||
139890989 | shining_ | A | Dec. 19, 2021, 12:34 p.m. | OK | PyPy 3 | TESTS | 8 | 77 | 7884800 | ||
139935868 | derghost | A | Dec. 20, 2021, 1:06 a.m. | OK | PyPy 3 | TESTS | 8 | 92 | 102400 | ||
139905496 | ishaand2 | A | Dec. 19, 2021, 2:55 p.m. | OK | PyPy 3 | TESTS | 8 | 92 | 2150400 | ||
139868018 | gennadylaptev | A | Dec. 19, 2021, 8:02 a.m. | OK | PyPy 3 | TESTS | 8 | 93 | 1638400 | ||
139829739 | prachir1501 | A | Dec. 18, 2021, 6:38 p.m. | OK | PyPy 3 | TESTS | 8 | 93 | 1843200 | ||
139854891 | Youarenotgood | A | Dec. 19, 2021, 4:51 a.m. | OK | PyPy 3 | TESTS | 8 | 93 | 2969600 | ||
139860869 | puffc0rn | A | Dec. 19, 2021, 6:28 a.m. | OK | PyPy 3 | TESTS | 8 | 93 | 67686400 | ||
139898828 | Bambam_Shivam | A | Dec. 19, 2021, 1:39 p.m. | OK | PyPy 3 | TESTS | 8 | 108 | 1536000 | ||
139884253 | majay1638 | A | Dec. 19, 2021, 11:22 a.m. | OK | PyPy 3 | TESTS | 8 | 109 | 2355200 | ||
139860743 | 190330228 | A | Dec. 19, 2021, 6:26 a.m. | OK | PyPy 3-64 | TESTS | 8 | 93 | 3276800 | ||
139871995 | shingoo_kang | A | Dec. 19, 2021, 8:54 a.m. | OK | PyPy 3-64 | TESTS | 8 | 108 | 1536000 | ||
139832601 | abhijha | A | Dec. 18, 2021, 7:10 p.m. | OK | PyPy 3-64 | TESTS | 8 | 108 | 3174400 | ||
139885876 | Keep_Coding | A | Dec. 19, 2021, 11:40 a.m. | OK | PyPy 3-64 | TESTS | 8 | 108 | 3276800 | ||
139856030 | mnkp | A | Dec. 19, 2021, 5:13 a.m. | OK | PyPy 3-64 | TESTS | 8 | 109 | 1331200 | ||
139827862 | Amit7752 | A | Dec. 18, 2021, 6:21 p.m. | OK | PyPy 3-64 | TESTS | 8 | 109 | 1331200 | ||
139827823 | Amit7752 | A | Dec. 18, 2021, 6:20 p.m. | OK | PyPy 3-64 | TESTS | 8 | 109 | 2969600 | ||
139873313 | vladislav.u | A | Dec. 19, 2021, 9:10 a.m. | OK | PyPy 3-64 | TESTS | 8 | 109 | 3072000 | ||
139882381 | harous | A | Dec. 19, 2021, 11:01 a.m. | OK | PyPy 3-64 | TESTS | 8 | 109 | 3174400 | ||
139863399 | hsh8086 | A | Dec. 19, 2021, 7:03 a.m. | OK | PyPy 3-64 | TESTS | 8 | 124 | 1228800 | ||
139864549 | OLOGY | A | Dec. 19, 2021, 7:19 a.m. | OK | Python 2 | TESTS | 8 | 46 | 0 | ||
139957775 | jagadish_007 | A | Dec. 20, 2021, 5:29 a.m. | OK | Python 3 | TESTS | 8 | 31 | 0 | ||
139909937 | 01300208097 | A | Dec. 19, 2021, 3:55 p.m. | OK | Python 3 | TESTS | 8 | 31 | 0 | ||
139870426 | STAR_ANONYMOUS | A | Dec. 19, 2021, 8:34 a.m. | OK | Python 3 | TESTS | 8 | 31 | 0 | ||
139854511 | danhnganc3 | A | Dec. 19, 2021, 4:43 a.m. | OK | Python 3 | TESTS | 8 | 31 | 0 | ||
139846458 | shanko | A | Dec. 19, 2021, 12:32 a.m. | OK | Python 3 | TESTS | 8 | 31 | 0 | ||
139911462 | rostoki | A | Dec. 19, 2021, 4:15 p.m. | OK | Python 3 | TESTS | 8 | 31 | 102400 | ||
139948905 | NgoTienAnh | A | Dec. 20, 2021, 3:38 a.m. | OK | Python 3 | TESTS | 8 | 46 | 0 | ||
139937054 | samprashx | A | Dec. 20, 2021, 2:08 a.m. | OK | Python 3 | TESTS | 8 | 46 | 0 | ||
139930892 | brobat | A | Dec. 19, 2021, 9:40 p.m. | OK | Python 3 | TESTS | 8 | 46 | 0 | ||
139929983 | hhyyt99 | A | Dec. 19, 2021, 9:17 p.m. | OK | Python 3 | TESTS | 8 | 46 | 0 | ||
139906166 | lxk | A | Dec. 19, 2021, 3:03 p.m. | OK | Rust 2021 | TESTS | 8 | 15 | 0 | ||
139891202 | iliekcomputers | A | Dec. 19, 2021, 12:37 p.m. | OK | Rust 2021 | TESTS | 8 | 15 | 0 | ||
139861680 | clause | A | Dec. 19, 2021, 6:40 a.m. | OK | Rust 2021 | TESTS | 8 | 15 | 0 |
Back to search problems