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 |
---|---|---|---|---|---|---|
1980 | Codeforces Round 950 (Div. 3) | FINISHED | False | 8100 | 14397899 | June 3, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 40668 ) | A | Problem Generator | PROGRAMMING |
B"Vlad is planning to hold m rounds next month. Each round should contain one problem of difficulty levels 'A', 'B', 'C', 'D', 'E', 'F', and 'G'. Vlad already has a bank of n problems, where the i -th problem has a difficulty level of a_i . There may not be enough of these problems, so he may have to come up with a few more problems. Vlad wants to come up with as few problems as possible, so he asks you to find the minimum number of problems he needs to come up with in order to hold m rounds. For example, if m=1 , n = 10 , a= 'BGECDCBDED', then he needs to come up with two problems: one of difficulty level 'A' and one of difficulty level 'F'. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. The first line of each test case contains two integers n and m ( 1 <= n <= 50 , 1 <= m <= 5 ) -- the number of problems in the bank and the number of upcoming rounds, respectively. The second line of each test case contains a string a of n characters from 'A' to 'G' -- the difficulties of the problems in the bank. For each test case, output a single integer -- the minimum number of problems that need to come up with to hold m rounds. "... |
130135 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
264063716 | A1ternate | A | June 3, 2024, 11:12 p.m. | OK | C# 10 | TESTS | 2 | 77 | 409600 | ||
264041857 | rayhanulraj210 | A | June 3, 2024, 5:57 p.m. | OK | C# 10 | TESTS | 2 | 77 | 1024000 | ||
264044174 | rayhanulraj210 | A | June 3, 2024, 6:18 p.m. | OK | C# 10 | TESTS | 2 | 78 | 921600 | ||
264081357 | dadadadapadaxing | A | June 4, 2024, 4:58 a.m. | OK | C++14 (GCC 6-32) | TESTS | 2 | 15 | 0 | ||
264056090 | HhAoRkSuHs_DD | A | June 3, 2024, 8:30 p.m. | OK | C++14 (GCC 6-32) | TESTS | 2 | 30 | 0 | ||
264035964 | hustler221071 | A | June 3, 2024, 5:12 p.m. | OK | C++14 (GCC 6-32) | TESTS | 2 | 30 | 0 | ||
264045146 | AKAiEk | A | June 3, 2024, 6:27 p.m. | OK | C++14 (GCC 6-32) | TESTS | 2 | 30 | 0 | ||
264084522 | vishwavirus8010 | A | June 4, 2024, 5:33 a.m. | OK | C++14 (GCC 6-32) | TESTS | 2 | 30 | 0 | ||
264076075 | CTGU_23_sxy | A | June 4, 2024, 3:42 a.m. | OK | C++14 (GCC 6-32) | TESTS | 2 | 30 | 0 | ||
264070694 | sanuj_kumar | A | June 4, 2024, 2:10 a.m. | OK | C++14 (GCC 6-32) | TESTS | 2 | 30 | 0 | ||
264079462 | elou36 | A | June 4, 2024, 4:34 a.m. | OK | C++14 (GCC 6-32) | TESTS | 2 | 31 | 0 | ||
264084621 | yakshitha_02 | A | June 4, 2024, 5:34 a.m. | OK | C++14 (GCC 6-32) | TESTS | 2 | 31 | 0 | ||
264077487 | Mahabur | A | June 4, 2024, 4:04 a.m. | OK | C++14 (GCC 6-32) | TESTS | 2 | 31 | 0 | ||
264037225 | hritik4november2003 | A | June 3, 2024, 5:20 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 15 | 0 | ||
264081893 | lcb2022001 | A | June 4, 2024, 5:04 a.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 15 | 0 | ||
264079293 | Nithya_ch | A | June 4, 2024, 4:32 a.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 15 | 0 | ||
264078589 | rachitguptadev | A | June 4, 2024, 4:22 a.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 15 | 0 | ||
264068898 | Yuhaowei | A | June 4, 2024, 1:43 a.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 15 | 0 | ||
264045825 | Arnav3107 | A | June 3, 2024, 6:33 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 15 | 0 | ||
264041971 | sonali_888 | A | June 3, 2024, 5:58 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 15 | 0 | ||
264039465 | kunalkhurana | A | June 3, 2024, 5:36 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 15 | 0 | ||
264039491 | krishnamohan | A | June 3, 2024, 5:36 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 15 | 32051200 | ||
264084960 | Rahul_5 | A | June 4, 2024, 5:37 a.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 30 | 0 | ||
264032394 | prietukani | A | June 3, 2024, 4:55 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 15 | 0 | ||
264083972 | hamadismail | A | June 4, 2024, 5:27 a.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 15 | 0 | ||
264078673 | Vedaansh | A | June 4, 2024, 4:23 a.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 15 | 0 | ||
264071392 | KAIRU_LIU | A | June 4, 2024, 2:22 a.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 15 | 0 | ||
264043110 | animesh7363 | A | June 3, 2024, 6:09 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 15 | 0 | ||
264041078 | cotx | A | June 3, 2024, 5:50 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 15 | 0 | ||
264038620 | aparichit20 | A | June 3, 2024, 5:30 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 15 | 0 | ||
264032469 | TryMeOut | A | June 3, 2024, 4:55 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 15 | 0 | ||
264085310 | njzhangshiyu | A | June 4, 2024, 5:41 a.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 30 | 0 | ||
264085528 | fs20091003 | A | June 4, 2024, 5:43 a.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 30 | 0 | ||
264060589 | bluemegane | A | June 3, 2024, 9:51 p.m. | OK | C# 8 | TESTS | 2 | 109 | 204800 | ||
264086429 | iijnnix | A | June 4, 2024, 5:54 a.m. | OK | GNU C11 | TESTS | 2 | 30 | 0 | ||
264078899 | magnuson02 | A | June 4, 2024, 4:26 a.m. | OK | GNU C11 | TESTS | 2 | 30 | 0 | ||
264035197 | mukesh04 | A | June 3, 2024, 5:08 p.m. | OK | GNU C11 | TESTS | 2 | 30 | 0 | ||
264080213 | swetasachan777 | A | June 4, 2024, 4:44 a.m. | OK | GNU C11 | TESTS | 2 | 31 | 102400 | ||
264049192 | biswajit_k9796 | A | June 3, 2024, 7:08 p.m. | OK | GNU C11 | TESTS | 2 | 31 | 102400 | ||
264086303 | athul_v_narayan | A | June 4, 2024, 5:52 a.m. | OK | GNU C11 | TESTS | 2 | 46 | 0 | ||
264040872 | J0n4th4n_Do3 | A | June 3, 2024, 5:48 p.m. | OK | GNU C11 | TESTS | 2 | 46 | 0 | ||
264046265 | crapcode | A | June 3, 2024, 6:37 p.m. | OK | Go | TESTS | 2 | 46 | 0 | ||
264067357 | nabendu | A | June 4, 2024, 1:03 a.m. | OK | Java 21 | TESTS | 2 | 171 | 204800 | ||
264051167 | vivek_67 | A | June 3, 2024, 7:28 p.m. | OK | Java 21 | TESTS | 2 | 186 | 1024000 | ||
264040155 | Eslam_Ahmed | A | June 3, 2024, 5:42 p.m. | OK | Java 21 | TESTS | 2 | 202 | 307200 | ||
264042443 | Sukul | A | June 3, 2024, 6:03 p.m. | OK | Java 21 | TESTS | 2 | 202 | 409600 | ||
264049297 | sumitsharanshukla | A | June 3, 2024, 7:09 p.m. | OK | Java 21 | TESTS | 2 | 202 | 716800 | ||
264059171 | SD125 | A | June 3, 2024, 9:20 p.m. | OK | Java 21 | TESTS | 2 | 217 | 0 | ||
264077739 | Alex_Toppo_06 | A | June 4, 2024, 4:08 a.m. | OK | Java 21 | TESTS | 2 | 218 | 0 | ||
264070277 | ISTIAR | A | June 4, 2024, 2:06 a.m. | OK | Java 21 | TESTS | 2 | 218 | 0 | ||
264048867 | ItsLever | A | June 3, 2024, 7:04 p.m. | OK | Java 21 | TESTS | 2 | 218 | 102400 | ||
264042215 | honey_badger1728 | A | June 3, 2024, 6:01 p.m. | OK | Java 21 | TESTS | 2 | 218 | 102400 | ||
264065316 | IvanD94 | A | June 4, 2024, 12:01 a.m. | OK | Java 8 | TESTS | 2 | 109 | 0 | ||
264056560 | TravisBickle | A | June 3, 2024, 8:37 p.m. | OK | Java 8 | TESTS | 2 | 124 | 0 | ||
264086804 | coderman2004 | A | June 4, 2024, 5:57 a.m. | OK | Java 8 | TESTS | 2 | 139 | 0 | ||
264059757 | CrescentMoon | A | June 3, 2024, 9:32 p.m. | OK | Java 8 | TESTS | 2 | 140 | 0 | ||
264075631 | Rianj | A | June 4, 2024, 3:35 a.m. | OK | Java 8 | TESTS | 2 | 155 | 0 | ||
264051641 | mpooja9440 | A | June 3, 2024, 7:34 p.m. | OK | Java 8 | TESTS | 2 | 155 | 0 | ||
264036933 | thupili | A | June 3, 2024, 5:18 p.m. | OK | Java 8 | TESTS | 2 | 155 | 0 | ||
264083582 | alllexey | A | June 4, 2024, 5:23 a.m. | OK | Java 8 | TESTS | 2 | 156 | 0 | ||
264079112 | smg_raza | A | June 4, 2024, 4:29 a.m. | OK | Java 8 | TESTS | 2 | 171 | 0 | ||
264078921 | darshanjk | A | June 4, 2024, 4:26 a.m. | OK | Java 8 | TESTS | 2 | 171 | 0 | ||
264034242 | bio-duplex | A | June 3, 2024, 5:03 p.m. | OK | Kotlin 1.9 | TESTS | 2 | 155 | 102400 | ||
264041656 | kideso | A | June 3, 2024, 5:55 p.m. | OK | Kotlin 1.9 | TESTS | 2 | 156 | 0 | ||
264067346 | gouravasdeo11 | A | June 4, 2024, 1:03 a.m. | OK | Kotlin 1.9 | TESTS | 2 | 171 | 0 | ||
264043514 | aayush.mishra | A | June 3, 2024, 6:12 p.m. | OK | Kotlin 1.9 | TESTS | 2 | 171 | 102400 | ||
264040373 | Krantzy | A | June 3, 2024, 5:44 p.m. | OK | Kotlin 1.9 | TESTS | 2 | 187 | 102400 | ||
264036149 | sushant23538_2 | A | June 3, 2024, 5:13 p.m. | OK | PyPy 3 | TESTS | 2 | 156 | 4812800 | ||
264039142 | skywalker77 | A | June 3, 2024, 5:33 p.m. | OK | PyPy 3 | TESTS | 2 | 171 | 6656000 | ||
264034276 | anamitrajoshi | A | June 3, 2024, 5:03 p.m. | OK | PyPy 3 | TESTS | 2 | 202 | 4915200 | ||
264037734 | DeadMan69 | A | June 3, 2024, 5:23 p.m. | OK | PyPy 3-64 | TESTS | 2 | 77 | 2048000 | ||
264041888 | gardengnome | A | June 3, 2024, 5:57 p.m. | OK | PyPy 3-64 | TESTS | 2 | 77 | 2252800 | ||
264086538 | FatinShadab | A | June 4, 2024, 5:55 a.m. | OK | PyPy 3-64 | TESTS | 2 | 77 | 2969600 | ||
264045270 | AldyDPP | A | June 3, 2024, 6:28 p.m. | OK | PyPy 3-64 | TESTS | 2 | 92 | 2355200 | ||
264066334 | USYDLDH | A | June 4, 2024, 12:33 a.m. | OK | PyPy 3-64 | TESTS | 2 | 92 | 3686400 | ||
264044160 | PhenomSG | A | June 3, 2024, 6:18 p.m. | OK | PyPy 3-64 | TESTS | 2 | 93 | 2150400 | ||
264066529 | SubmissionRejected | A | June 4, 2024, 12:38 a.m. | OK | PyPy 3-64 | TESTS | 2 | 93 | 2764800 | ||
264039731 | MooseCheese_ | A | June 3, 2024, 5:38 p.m. | OK | PyPy 3-64 | TESTS | 2 | 93 | 2764800 | ||
264046506 | Venom.denom | A | June 3, 2024, 6:40 p.m. | OK | PyPy 3-64 | TESTS | 2 | 93 | 2969600 | ||
264050553 | MistaFlash | A | June 3, 2024, 7:22 p.m. | OK | PyPy 3-64 | TESTS | 2 | 108 | 1433600 | ||
264082962 | Mptso | A | June 4, 2024, 5:16 a.m. | OK | Python 3 | TESTS | 2 | 46 | 0 | ||
264071188 | sekiro1 | A | June 4, 2024, 2:18 a.m. | OK | Python 3 | TESTS | 2 | 46 | 0 | ||
264041926 | Boomchillsss | A | June 3, 2024, 5:58 p.m. | OK | Python 3 | TESTS | 2 | 46 | 0 | ||
264041660 | Vyb-hub | A | June 3, 2024, 5:55 p.m. | OK | Python 3 | TESTS | 2 | 46 | 0 | ||
264040881 | Kushick | A | June 3, 2024, 5:48 p.m. | OK | Python 3 | TESTS | 2 | 46 | 0 | ||
264037651 | Tasya_12 | A | June 3, 2024, 5:22 p.m. | OK | Python 3 | TESTS | 2 | 46 | 0 | ||
264037303 | mynameone | A | June 3, 2024, 5:20 p.m. | OK | Python 3 | TESTS | 2 | 46 | 0 | ||
264083651 | tllwtg | A | June 4, 2024, 5:23 a.m. | OK | Python 3 | TESTS | 2 | 61 | 0 | ||
264083049 | 27abdul.rafeh | A | June 4, 2024, 5:17 a.m. | OK | Python 3 | TESTS | 2 | 61 | 0 | ||
264077453 | atharvchagi | A | June 4, 2024, 4:04 a.m. | OK | Python 3 | TESTS | 2 | 61 | 0 | ||
264071090 | SnowballSH | A | June 4, 2024, 2:16 a.m. | OK | Rust 2021 | TESTS | 2 | 31 | 0 | ||
264082352 | a_gt3_rs | A | June 4, 2024, 5:09 a.m. | OK | Rust 2021 | TESTS | 2 | 46 | 0 |
Back to search problems