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 |
---|---|---|---|---|---|---|
1837 | Educational Codeforces Round 149 (Rated for Div. 2) | FINISHED | False | 7200 | 52241063 | May 25, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 31995 ) | B | Comparison String | PROGRAMMING | greedy |
B'You are given a string s of length n , where each character is either < or >. An array a consisting of n+1 elements is compatible with the string s if, for every i from 1 to n , the character s_i represents the result of comparing a_i and a_{i+1} , i. xe2 x80 x89e.: For example, the array [1, 2, 5, 4, 2] is compatible with the string <<>>. There are other arrays with are compatible with that string, for example, [13, 37, 42, 37, 13] . The cost of the array is the number of different elements in it. For example, the cost of [1, 2, 5, 4, 2] is 4 ; the cost of [13, 37, 42, 37, 13] is 3 . You have to calculate the minimum cost among all arrays which are compatible with the given string s . The first line contains one integer t ( 1 <= t <= 500 ) -- the number of test cases. Each test case consists of two lines: For each test case, print one integer -- the minimum cost among all arrays which are compatible with the given string s . In the first test case of the example, the array can be [13, 37, 42, 37, 13] . In the second test case of the example, the array can be [42, 37, 13, 37, 42] . '... |
116752 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
207270697 | Alfafox | B | May 25, 2023, 5:39 p.m. | OK | C# 10 | TESTS | 3 | 46 | 0 | ||
207297967 | AutumnMist | B | May 26, 2023, 2:33 a.m. | OK | C# 10 | TESTS | 3 | 77 | 0 | ||
207298126 | AutumnMist | B | May 26, 2023, 2:36 a.m. | OK | C# 10 | TESTS | 3 | 93 | 0 | ||
207289795 | bluemegane | B | May 25, 2023, 10:34 p.m. | OK | C# 8 | TESTS | 3 | 77 | 0 | ||
207273106 | Fxalaaaaaa | B | May 25, 2023, 6:01 p.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 31 | 0 | ||
207310663 | Ywave | B | May 26, 2023, 5:59 a.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 31 | 0 | ||
207285802 | shahshihab02 | B | May 25, 2023, 8:55 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
207291302 | qiqi_1 | B | May 25, 2023, 11:32 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
207295844 | iffatul_anon | B | May 26, 2023, 1:44 a.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
207281820 | saaad | B | May 25, 2023, 7:47 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
207259660 | 2000031508 | B | May 25, 2023, 4:33 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
207264338 | astronom1cal | B | May 25, 2023, 4:52 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
207264592 | nestor_makhno | B | May 25, 2023, 4:53 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
207277329 | rajesh19 | B | May 25, 2023, 6:44 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
207287073 | c0derro | B | May 25, 2023, 9:19 p.m. | OK | GNU C11 | TESTS | 3 | 390 | 0 | ||
207305209 | mushanyu | B | May 26, 2023, 4:43 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
207309934 | zzuqy | B | May 26, 2023, 5:50 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
207308804 | yizhixiaoyun | B | May 26, 2023, 5:35 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
207308595 | yuyunke | B | May 26, 2023, 5:32 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
207307086 | Abd_Mamun | B | May 26, 2023, 5:11 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
207306952 | ashraycodes | B | May 26, 2023, 5:09 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
207306025 | nowaykkk | B | May 26, 2023, 4:56 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
207305743 | zltzlt | B | May 26, 2023, 4:52 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
207305733 | Sakib_just_20 | B | May 26, 2023, 4:52 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
207310205 | a_p | B | May 26, 2023, 5:53 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
207309174 | TheModernPacMan | B | May 26, 2023, 5:40 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
207309005 | MonDellBit | B | May 26, 2023, 5:38 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
207309574 | vjudge3 | B | May 26, 2023, 5:45 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
207309506 | bkifhr7 | B | May 26, 2023, 5:44 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
207309599 | MonDellBit | B | May 26, 2023, 5:45 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
207309625 | mahmudrashik | B | May 26, 2023, 5:45 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
207309811 | Rachit_R | B | May 26, 2023, 5:48 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
207309936 | Guycholo_ | B | May 26, 2023, 5:50 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
207309986 | im_Komal | B | May 26, 2023, 5:50 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
207310754 | eshtiakhasan | B | May 26, 2023, 6 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
207306530 | Sy_03 | B | May 26, 2023, 5:03 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
207310096 | tonystark555595 | B | May 26, 2023, 5:52 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
207309562 | bkifhr9 | B | May 26, 2023, 5:45 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
207308547 | ujjvalsaini | B | May 26, 2023, 5:31 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
207306010 | wmh34 | B | May 26, 2023, 4:55 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
207305876 | pranaypj13 | B | May 26, 2023, 4:54 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
207304596 | 815741912 | B | May 26, 2023, 4:33 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
207304456 | walilili | B | May 26, 2023, 4:31 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
207304407 | lunchbox | B | May 26, 2023, 4:30 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
207304283 | stop | B | May 26, 2023, 4:28 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
207308834 | diptabhm | B | May 26, 2023, 5:36 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
207308311 | Rykony | B | May 26, 2023, 5:28 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
207308956 | rocksampath.jr | B | May 26, 2023, 5:37 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
207309100 | ayush_r01 | B | May 26, 2023, 5:39 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
207309388 | Arix | B | May 26, 2023, 5:43 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
207310085 | xiluoa | B | May 26, 2023, 5:51 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
207310346 | mh_majumdar | B | May 26, 2023, 5:55 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
207310411 | Oinng | B | May 26, 2023, 5:56 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
207310450 | tzh2001 | B | May 26, 2023, 5:57 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
207310657 | sabbir772002 | B | May 26, 2023, 5:59 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
207282105 | sarvesh_bawari | B | May 25, 2023, 7:52 p.m. | OK | Java 11 | TESTS | 3 | 140 | 0 | ||
207263637 | faresbadr316 | B | May 25, 2023, 4:48 p.m. | OK | Java 11 | TESTS | 3 | 140 | 0 | ||
207305834 | hugewarriors | B | May 26, 2023, 4:53 a.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | ||
207283135 | ash_79 | B | May 25, 2023, 8:07 p.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | ||
207279536 | sunaj | B | May 25, 2023, 7:13 p.m. | OK | Java 11 | TESTS | 3 | 156 | 0 | ||
207271615 | g_square | B | May 25, 2023, 5:48 p.m. | OK | Java 11 | TESTS | 3 | 170 | 0 | ||
207264171 | KIRA_p01 | B | May 25, 2023, 4:51 p.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | ||
207283809 | polsage | B | May 25, 2023, 8:18 p.m. | OK | Java 11 | TESTS | 3 | 186 | 102400 | ||
207263807 | Vaibhav_Rajpal | B | May 25, 2023, 4:49 p.m. | OK | Java 11 | TESTS | 3 | 187 | 0 | ||
207299425 | ilasiawo | B | May 26, 2023, 3:01 a.m. | OK | Java 11 | TESTS | 3 | 187 | 102400 | ||
207262596 | SuprHUlk | B | May 25, 2023, 4:41 p.m. | OK | Java 17 | TESTS | 3 | 140 | 307200 | ||
207295228 | om_ashish_soni | B | May 26, 2023, 1:30 a.m. | OK | Java 17 | TESTS | 3 | 140 | 409600 | ||
207259808 | jimmyd211 | B | May 25, 2023, 4:33 p.m. | OK | Java 17 | TESTS | 3 | 170 | 512000 | ||
207274681 | Vrutik_2809 | B | May 25, 2023, 6:16 p.m. | OK | Java 17 | TESTS | 3 | 171 | 921600 | ||
207275052 | MagentaCobra | B | May 25, 2023, 6:19 p.m. | OK | Java 17 | TESTS | 3 | 186 | 1024000 | ||
207296356 | bleach__ | B | May 26, 2023, 1:57 a.m. | OK | Java 17 | TESTS | 3 | 186 | 6144000 | ||
207279436 | im_Yash24 | B | May 25, 2023, 7:11 p.m. | OK | Java 17 | TESTS | 3 | 186 | 41984000 | ||
207275699 | ZRroar | B | May 25, 2023, 6:26 p.m. | OK | Java 17 | TESTS | 3 | 202 | 409600 | ||
207294837 | perfect44 | B | May 26, 2023, 1:20 a.m. | OK | Java 17 | TESTS | 3 | 202 | 614400 | ||
207276633 | bruce_x001 | B | May 25, 2023, 6:36 p.m. | OK | Java 17 | TESTS | 3 | 202 | 614400 | ||
207290918 | AbdelrahmanFathy | B | May 25, 2023, 11:16 p.m. | OK | Java 8 | TESTS | 3 | 62 | 0 | ||
207267625 | ss171 | B | May 25, 2023, 5:12 p.m. | OK | Java 8 | TESTS | 3 | 92 | 0 | ||
207262374 | NerfThis | B | May 25, 2023, 4:40 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
207310368 | pxhero | B | May 26, 2023, 5:56 a.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
207295940 | chuquwan9964 | B | May 26, 2023, 1:47 a.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
207291761 | mohamedhassan_c | B | May 25, 2023, 11:48 p.m. | OK | Java 8 | TESTS | 3 | 93 | 6246400 | ||
207268172 | depurador_ik | B | May 25, 2023, 5:17 p.m. | OK | Java 8 | TESTS | 3 | 93 | 38707200 | ||
207262740 | QianCCC | B | May 25, 2023, 4:42 p.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | ||
207296970 | ab411 | B | May 26, 2023, 2:11 a.m. | OK | Java 8 | TESTS | 3 | 124 | 0 | ||
207297846 | klsane04 | B | May 26, 2023, 2:30 a.m. | OK | Java 8 | TESTS | 3 | 124 | 0 | ||
207262772 | Krantzy | B | May 25, 2023, 4:42 p.m. | OK | Kotlin 1.7 | TESTS | 3 | 218 | 0 | ||
207283874 | skimono | B | May 25, 2023, 8:19 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
207304858 | Ranjeet_yadav | B | May 26, 2023, 4:37 a.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
207294621 | Eternalisgaming | B | May 26, 2023, 1:15 a.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
207265785 | Avi2021 | B | May 25, 2023, 5 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
207289593 | random__person | B | May 25, 2023, 10:28 p.m. | OK | PyPy 3 | TESTS | 3 | 93 | 2662400 | ||
207292770 | knight2995 | B | May 26, 2023, 12:23 a.m. | OK | PyPy 3 | TESTS | 3 | 108 | 2048000 | ||
207273318 | Yash_Nandwana | B | May 25, 2023, 6:03 p.m. | OK | PyPy 3 | TESTS | 3 | 109 | 4812800 | ||
207280218 | Hell_of_a_Coder | B | May 25, 2023, 7:23 p.m. | OK | PyPy 3 | TESTS | 3 | 124 | 4096000 | ||
207306383 | noob_coder121324 | B | May 26, 2023, 5:01 a.m. | OK | PyPy 3 | TESTS | 3 | 140 | 4198400 | ||
207278122 | bluestareesh | B | May 25, 2023, 6:53 p.m. | OK | PyPy 3 | TESTS | 3 | 140 | 4710400 | ||
207264167 | VidGa | B | May 25, 2023, 4:51 p.m. | OK | PyPy 3 | TESTS | 3 | 140 | 4812800 | ||
207291350 | pennymagic156 | B | May 25, 2023, 11:33 p.m. | OK | PyPy 3-64 | TESTS | 3 | 61 | 1945600 | ||
207277479 | Div2003 | B | May 25, 2023, 6:46 p.m. | OK | PyPy 3-64 | TESTS | 3 | 61 | 2560000 | ||
207297072 | Quick-One | B | May 26, 2023, 2:13 a.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 2048000 | ||
207265651 | I_Am_That | B | May 25, 2023, 4:59 p.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 2560000 | ||
207270375 | alexwice | B | May 25, 2023, 5:36 p.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 2764800 | ||
207300366 | zipsey | B | May 26, 2023, 3:18 a.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 3379200 | ||
207269847 | AryanSeth | B | May 25, 2023, 5:31 p.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 4096000 | ||
207299666 | drugkeeper | B | May 26, 2023, 3:05 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 3276800 | ||
207268152 | Khatarnak_Khandu | B | May 25, 2023, 5:17 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 3788800 | ||
207261653 | 1_2_3_4_5_9 | B | May 25, 2023, 4:38 p.m. | OK | PyPy 3-64 | TESTS | 3 | 92 | 7372800 | ||
207283796 | powershop9640 | B | May 25, 2023, 8:18 p.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | ||
207309655 | fiercemoon | B | May 26, 2023, 5:46 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
207308347 | nikkisuraj08 | B | May 26, 2023, 5:29 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
207305625 | Muhammad-Usama | B | May 26, 2023, 4:50 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
207305244 | Block_Cipher | B | May 26, 2023, 4:44 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
207272511 | eugalt | B | May 25, 2023, 5:55 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
207271520 | ninadc | B | May 25, 2023, 5:47 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
207271414 | eugalt | B | May 25, 2023, 5:46 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
207259647 | farhad-nstu | B | May 25, 2023, 4:33 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
207310152 | giriraj_parik | B | May 26, 2023, 5:52 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
207274129 | 0x81 | B | May 25, 2023, 6:11 p.m. | OK | Ruby 3 | TESTS | 3 | 233 | 102400 | ||
207264895 | n7484443 | B | May 25, 2023, 4:55 p.m. | OK | Rust 2021 | TESTS | 3 | 0 | 0 | ||
207288237 | dmenezes | B | May 25, 2023, 9:49 p.m. | OK | Rust 2021 | TESTS | 3 | 15 | 0 | ||
207284221 | kost | B | May 25, 2023, 8:25 p.m. | OK | Rust 2021 | TESTS | 3 | 15 | 0 | ||
207278073 | matheusdacach | B | May 25, 2023, 6:53 p.m. | OK | Rust 2021 | TESTS | 3 | 15 | 102400 |
Back to search problems