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 |
---|---|---|---|---|---|---|
1487 | Educational Codeforces Round 104 (Rated for Div. 2) | FINISHED | False | 7200 | 123780263 | Feb. 15, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 26708 ) | A | Arena | PROGRAMMING | implementation sortings |
B" n heroes fight against each other in the Arena. Initially, the i -th hero has level a_i . Each minute, a fight between two different heroes occurs. These heroes can be chosen arbitrarily (it's even possible that it is the same two heroes that were fighting during the last minute). When two heroes of equal levels fight, nobody wins the fight. When two heroes of different levels fight, the one with the higher level wins, and his level increases by 1 . The winner of the tournament is the first hero that wins in at least 100^{500} fights (note that it's possible that the tournament lasts forever if no hero wins this number of fights, then there is no winner). A possible winner is a hero such that there exists a sequence of fights that this hero becomes the winner of the tournament. Calculate the number of possible winners among n heroes. The first line contains one integer t ( 1 <= t <= 500 ) -- the number of test cases. Each test case consists of two lines. The first line contains one integer n ( 2 <= n <= 100 ) -- the number of heroes. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 100 ), where a_i is the initial level of the i -th hero. For each test case, print one integer -- the number of possible winners among the given n heroes. In the first test case of the example, the only possible winner is the first hero. In the second test case of the example, each fight between the heroes results in nobody winning it, so the tournament lasts forever and there is no winner. "... |
87873 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
107493685 | cedretaber | A | Feb. 16, 2021, 12:21 a.m. | OK | D | TESTS | 13 | 15 | 1945600 | ||
107475863 | jaehyun | A | Feb. 15, 2021, 5:10 p.m. | OK | FPC | TESTS | 3 | 15 | 0 | ||
107465179 | Redoy_Kumar50 | A | Feb. 15, 2021, 4:26 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
107475962 | Sabid_ | A | Feb. 15, 2021, 5:11 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
107477505 | MVG_27 | A | Feb. 15, 2021, 5:27 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
107478648 | partha15-14086 | A | Feb. 15, 2021, 5:41 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
107466032 | sabbir.sa2k | A | Feb. 15, 2021, 4:28 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
107468723 | Viv1_01 | A | Feb. 15, 2021, 4:32 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
107469782 | weak_programmer | A | Feb. 15, 2021, 4:34 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
107475334 | bnurgeldiyev514 | A | Feb. 15, 2021, 5:05 p.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | ||
107491671 | kuba_422 | A | Feb. 15, 2021, 10:26 p.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | ||
107500646 | blazecipher987 | A | Feb. 16, 2021, 4:43 a.m. | OK | GNU C11 | TESTS | 13 | 31 | 0 | ||
107495256 | zhuzhirui2005 | A | Feb. 16, 2021, 1:50 a.m. | OK | GNU C++11 | TESTS | 13 | 15 | 0 | ||
107494777 | Orz_Sponge_Bob | A | Feb. 16, 2021, 1:23 a.m. | OK | GNU C++11 | TESTS | 13 | 15 | 0 | ||
107494667 | Spectre2017 | A | Feb. 16, 2021, 1:17 a.m. | OK | GNU C++11 | TESTS | 13 | 15 | 0 | ||
107493989 | ShmilyTY | A | Feb. 16, 2021, 12:38 a.m. | OK | GNU C++11 | TESTS | 13 | 15 | 0 | ||
107500513 | yinzai | A | Feb. 16, 2021, 4:39 a.m. | OK | GNU C++11 | TESTS | 13 | 15 | 0 | ||
107497947 | pbrinotwyh | A | Feb. 16, 2021, 3:32 a.m. | OK | GNU C++11 | TESTS | 13 | 15 | 0 | ||
107497466 | wwlw | A | Feb. 16, 2021, 3:15 a.m. | OK | GNU C++11 | TESTS | 13 | 15 | 0 | ||
107496262 | kyriezzx | A | Feb. 16, 2021, 2:31 a.m. | OK | GNU C++11 | TESTS | 13 | 15 | 0 | ||
107496023 | XueYJ | A | Feb. 16, 2021, 2:23 a.m. | OK | GNU C++11 | TESTS | 13 | 15 | 0 | ||
107495977 | little_sheep917 | A | Feb. 16, 2021, 2:21 a.m. | OK | GNU C++11 | TESTS | 13 | 15 | 0 | ||
107481503 | mani_0_0 | A | Feb. 15, 2021, 6:21 p.m. | OK | GNU C++14 | TESTS | 3 | 15 | 0 | ||
107498809 | ittachi | A | Feb. 16, 2021, 3:57 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
107499756 | antriksh1685 | A | Feb. 16, 2021, 4:21 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
107502071 | adhm157 | A | Feb. 16, 2021, 5:14 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
107491492 | camicata | A | Feb. 15, 2021, 10:19 p.m. | OK | GNU C++14 | TESTS | 3 | 15 | 0 | ||
107485055 | RedAnt | A | Feb. 15, 2021, 7:22 p.m. | OK | GNU C++14 | TESTS | 3 | 15 | 0 | ||
107482910 | Medha_balani | A | Feb. 15, 2021, 6:44 p.m. | OK | GNU C++14 | TESTS | 3 | 15 | 0 | ||
107482850 | paulshreya | A | Feb. 15, 2021, 6:43 p.m. | OK | GNU C++14 | TESTS | 3 | 15 | 0 | ||
107482397 | IamSKK | A | Feb. 15, 2021, 6:35 p.m. | OK | GNU C++14 | TESTS | 3 | 15 | 0 | ||
107482354 | racsosabe | A | Feb. 15, 2021, 6:34 p.m. | OK | GNU C++14 | TESTS | 3 | 15 | 0 | ||
107497122 | zipzipzip | A | Feb. 16, 2021, 3:03 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
107501248 | Valkov | A | Feb. 16, 2021, 4:56 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
107500284 | rishit3234 | A | Feb. 16, 2021, 4:34 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
107499661 | BuBbLeS_2001 | A | Feb. 16, 2021, 4:19 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
107499040 | Iamsuruchi8463 | A | Feb. 16, 2021, 4:03 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
107495451 | Aayush_Kansara | A | Feb. 16, 2021, 1:59 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
107491892 | darkandy | A | Feb. 15, 2021, 10:35 p.m. | OK | GNU C++17 | TESTS | 3 | 15 | 0 | ||
107491188 | MohammadSelim | A | Feb. 15, 2021, 10:06 p.m. | OK | GNU C++17 | TESTS | 3 | 15 | 0 | ||
107490493 | NecRpyedt | A | Feb. 15, 2021, 9:40 p.m. | OK | GNU C++17 | TESTS | 3 | 15 | 0 | ||
107490000 | Fronto | A | Feb. 15, 2021, 9:23 p.m. | OK | GNU C++17 | TESTS | 3 | 15 | 0 | ||
107477716 | HDUASD | A | Feb. 15, 2021, 5:29 p.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
107493404 | MarcosK | A | Feb. 16, 2021, midnight | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
107493441 | haruki_K | A | Feb. 16, 2021, 12:02 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
107495432 | nicholask | A | Feb. 16, 2021, 1:58 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
107496230 | LethalPuppy | A | Feb. 16, 2021, 2:30 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
107497895 | ponytail | A | Feb. 16, 2021, 3:30 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
107500569 | MeyCey | A | Feb. 16, 2021, 4:41 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
107502097 | anil_111 | A | Feb. 16, 2021, 5:14 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
107504310 | Crz-Willis | A | Feb. 16, 2021, 5:56 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
107493056 | orzelephant | A | Feb. 15, 2021, 11:37 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
107493644 | 0x3F | A | Feb. 16, 2021, 12:17 a.m. | OK | Go | TESTS | 13 | 31 | 0 | ||
107496916 | 87ouo | A | Feb. 16, 2021, 2:55 a.m. | OK | Go | TESTS | 13 | 452 | 102400 | ||
107481108 | KGECian_23 | A | Feb. 15, 2021, 6:15 p.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | ||
107474724 | Kabir | A | Feb. 15, 2021, 5 p.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | ||
107498841 | rajput49 | A | Feb. 16, 2021, 3:58 a.m. | OK | Java 11 | TESTS | 13 | 171 | 0 | ||
107478483 | Akram-Adel | A | Feb. 15, 2021, 5:39 p.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | ||
107471660 | Pushkar-PM | A | Feb. 15, 2021, 4:40 p.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | ||
107504524 | boltUsain | A | Feb. 16, 2021, 5:59 a.m. | OK | Java 11 | TESTS | 13 | 186 | 0 | ||
107482964 | gAyan17 | A | Feb. 15, 2021, 6:45 p.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | ||
107476887 | nick_301 | A | Feb. 15, 2021, 5:21 p.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | ||
107498263 | Sanju_250406 | A | Feb. 16, 2021, 3:41 a.m. | OK | Java 11 | TESTS | 13 | 187 | 0 | ||
107502055 | edwin.ansari | A | Feb. 16, 2021, 5:13 a.m. | OK | Java 11 | TESTS | 13 | 187 | 0 | ||
107479036 | less_ordinary | A | Feb. 15, 2021, 5:46 p.m. | OK | Java 8 | TESTS | 3 | 92 | 0 | ||
107483357 | Snow | A | Feb. 15, 2021, 6:52 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
107476473 | w_fang | A | Feb. 15, 2021, 5:16 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
107481694 | AayushICS | A | Feb. 15, 2021, 6:24 p.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | ||
107497615 | aviii23 | A | Feb. 16, 2021, 3:21 a.m. | OK | Java 8 | TESTS | 13 | 108 | 0 | ||
107488933 | invisible_matter0826 | A | Feb. 15, 2021, 8:50 p.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | ||
107483086 | dubina | A | Feb. 15, 2021, 6:47 p.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | ||
107480693 | joydeep.das43 | A | Feb. 15, 2021, 6:09 p.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | ||
107503710 | Manan8686 | A | Feb. 16, 2021, 5:46 a.m. | OK | Java 8 | TESTS | 13 | 109 | 0 | ||
107492058 | theunseenblade | A | Feb. 15, 2021, 10:44 p.m. | OK | Java 8 | TESTS | 3 | 109 | 0 | ||
107493588 | Spheniscine | A | Feb. 16, 2021, 12:12 a.m. | OK | Kotlin | TESTS | 13 | 156 | 1126400 | ||
107479727 | cz_itsme | A | Feb. 15, 2021, 5:55 p.m. | OK | MS C++ 2017 | TESTS | 3 | 31 | 0 | ||
107482486 | NoiseLess | A | Feb. 15, 2021, 6:36 p.m. | OK | MS C++ 2017 | TESTS | 3 | 46 | 0 | ||
107498959 | Terry55 | A | Feb. 16, 2021, 4:01 a.m. | OK | MS C++ 2017 | TESTS | 13 | 46 | 0 | ||
107495066 | KyleOki | A | Feb. 16, 2021, 1:38 a.m. | OK | MS C++ 2017 | TESTS | 13 | 46 | 0 | ||
107494741 | _Rimjhim_36 | A | Feb. 16, 2021, 1:21 a.m. | OK | MS C++ 2017 | TESTS | 13 | 46 | 0 | ||
107500671 | WCmidschool | A | Feb. 16, 2021, 4:43 a.m. | OK | MS C++ 2017 | TESTS | 13 | 46 | 409600 | ||
107503767 | sid15081999 | A | Feb. 16, 2021, 5:47 a.m. | OK | MS C++ 2017 | TESTS | 13 | 62 | 0 | ||
107497392 | HaibaraAi | A | Feb. 16, 2021, 3:12 a.m. | OK | .NET Core C# | TESTS | 13 | 93 | 3072000 | ||
107499381 | MadinaN | A | Feb. 16, 2021, 4:12 a.m. | OK | PHP | TESTS | 13 | 46 | 0 | ||
107473333 | Marshmello | A | Feb. 15, 2021, 4:50 p.m. | OK | PyPy 2 | TESTS | 3 | 108 | 1843200 | ||
107480085 | evoxtorm | A | Feb. 15, 2021, 6 p.m. | OK | PyPy 3 | TESTS | 3 | 108 | 1945600 | ||
107504683 | safeers | A | Feb. 16, 2021, 6:02 a.m. | OK | PyPy 3 | TESTS | 13 | 109 | 2048000 | ||
107473593 | titia | A | Feb. 15, 2021, 4:52 p.m. | OK | PyPy 3 | TESTS | 3 | 109 | 2560000 | ||
107498002 | srijan.sarkar | A | Feb. 16, 2021, 3:34 a.m. | OK | PyPy 3 | TESTS | 13 | 124 | 2048000 | ||
107471939 | deepanshu_pali | A | Feb. 15, 2021, 4:42 p.m. | OK | PyPy 3 | TESTS | 3 | 124 | 2150400 | ||
107482932 | tiwari0000 | A | Feb. 15, 2021, 6:44 p.m. | OK | PyPy 3 | TESTS | 3 | 124 | 2355200 | ||
107500235 | akifpathan | A | Feb. 16, 2021, 4:33 a.m. | OK | PyPy 3 | TESTS | 13 | 124 | 3276800 | ||
107474079 | Coding_RDX1 | A | Feb. 15, 2021, 4:55 p.m. | OK | PyPy 3 | TESTS | 3 | 139 | 2560000 | ||
107481749 | shot_stopper | A | Feb. 15, 2021, 6:25 p.m. | OK | PyPy 3 | TESTS | 3 | 139 | 2662400 | ||
107479953 | Stalk4r | A | Feb. 15, 2021, 5:58 p.m. | OK | PyPy 3 | TESTS | 3 | 139 | 2867200 | ||
107480259 | KritiKalash | A | Feb. 15, 2021, 6:03 p.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
107473664 | samiul_basir | A | Feb. 15, 2021, 4:52 p.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
107493682 | k2nt | A | Feb. 16, 2021, 12:21 a.m. | OK | Python 3 | TESTS | 13 | 61 | 0 | ||
107484924 | sparkj.yoon | A | Feb. 15, 2021, 7:19 p.m. | OK | Python 3 | TESTS | 3 | 61 | 0 | ||
107484846 | sparkj.yoon | A | Feb. 15, 2021, 7:18 p.m. | OK | Python 3 | TESTS | 3 | 61 | 0 | ||
107477758 | kritarth21 | A | Feb. 15, 2021, 5:30 p.m. | OK | Python 3 | TESTS | 3 | 61 | 0 | ||
107477533 | CoutReborn | A | Feb. 15, 2021, 5:27 p.m. | OK | Python 3 | TESTS | 3 | 61 | 0 | ||
107477005 | deeboo | A | Feb. 15, 2021, 5:22 p.m. | OK | Python 3 | TESTS | 3 | 61 | 0 | ||
107474989 | RedSpica | A | Feb. 15, 2021, 5:02 p.m. | OK | Python 3 | TESTS | 3 | 61 | 0 | ||
107503002 | Saicharn_nr | A | Feb. 16, 2021, 5:33 a.m. | OK | Python 3 | TESTS | 13 | 62 | 0 | ||
107489362 | __v0id | A | Feb. 15, 2021, 9:02 p.m. | OK | Ruby 3 | TESTS | 3 | 234 | 0 | ||
107489215 | __v0id | A | Feb. 15, 2021, 8:57 p.m. | OK | Ruby 3 | TESTS | 3 | 248 | 0 | ||
107489425 | __v0id | A | Feb. 15, 2021, 9:04 p.m. | OK | Ruby 3 | TESTS | 3 | 248 | 102400 | ||
107489503 | __v0id | A | Feb. 15, 2021, 9:07 p.m. | OK | Ruby 3 | TESTS | 3 | 249 | 102400 | ||
107489184 | __v0id | A | Feb. 15, 2021, 8:56 p.m. | OK | Ruby 3 | TESTS | 3 | 264 | 0 | ||
107478295 | igor.v.karp | A | Feb. 15, 2021, 5:36 p.m. | OK | Scala | TESTS | 3 | 436 | 0 |
Back to search problems