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 |
---|---|---|---|---|---|---|
1866 | COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 43437263 | Sept. 3, 2023, 12:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 296 ) | J | Jackets and Packets | PROGRAMMING | dp |
B"Pak Chanek has N jackets that are stored in a wardrobe. Pak Chanek's wardrobe has enough room for two stacks of jackets, namely the left stack and the right stack. Initially, all N jackets are in the left stack, while the right stack is empty. Initially, the i -th jacket from the top of the left stack has colour C_i . Pak Chanek wants to pack all of those jackets into some packets, such that the jackets in the same packet has the same colour. However, it is possible for two jackets with the same colour to be in different packets. Pak Chanek can do two kinds of operations: Determine the minimum time to pack all jackets! The first line contains three integers N , X , and Y ( 1 <= q N <= q 400 ; 1 <= q X,Y <= q10^9 ) -- the number of jackets, the time to do a packing operation, and the time to do a movement operation. The second line contains N integers C_1, C_2, C_3, ldots, C_N ( 1 <= q C_i <= q N ) -- the colour of each jacket. An integer representing the minimum time to pack all jackets. Let's denote the contents of the two stacks using arrays that represent the colours of the jackets in the stack from top to bottom. Initially, the two stacks form [4, 4, 2, 4, 1, 2, 2, 1] and [] . Pak Chanek can do the following sequence of operations: In total, it requires a time of 2+2+7+2+2+7+2+7+7=38 minutes to pack all jackets. It can be proven that there are no other ways that are faster. "... |
COMPFEST 15 Preliminary — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
221718491 | Muelsyse KroosTheKeenGlint | J | Sept. 3, 2023, 4:05 p.m. | OK | GNU C++14 | TESTS | 35 | 187 | 3993600 | ||
221767172 | bkifhr9 | J | Sept. 4, 2023, 3:39 a.m. | OK | GNU C++14 | TESTS | 35 | 218 | 2662400 | ||
221716806 | StarSilk | J | Sept. 3, 2023, 3:53 p.m. | OK | GNU C++14 | TESTS | 35 | 249 | 3891200 | ||
221773284 | Sai_Rohit-30021 | J | Sept. 4, 2023, 5:21 a.m. | OK | GNU C++17 | TESTS | 35 | 78 | 1331200 | ||
221767387 | srivathsava_337 | J | Sept. 4, 2023, 3:42 a.m. | OK | GNU C++17 | TESTS | 35 | 93 | 1331200 | ||
221719640 | aymanrasheed7 serotonin Alpha_Q | J | Sept. 3, 2023, 4:13 p.m. | OK | GNU C++17 | TESTS | 35 | 93 | 1331200 | ||
221710846 | Gary2005 MonkeyKing | J | Sept. 3, 2023, 3:12 p.m. | OK | GNU C++17 | TESTS | 35 | 124 | 7065600 | ||
221775186 | Pyqe | J | Sept. 4, 2023, 5:48 a.m. | OK | GNU C++17 | TESTS | 35 | 327 | 5324800 | ||
221703819 | riconduongcung | J | Sept. 3, 2023, 2:29 p.m. | OK | GNU C++17 | TESTS | 35 | 405 | 3993600 | ||
221716563 | user202729_ nvmdava rama_pang | J | Sept. 3, 2023, 3:51 p.m. | OK | GNU C++17 (64) | TESTS | 35 | 31 | 4096000 | ||
221703065 | noimi SSRS_ | J | Sept. 3, 2023, 2:25 p.m. | OK | GNU C++17 (64) | TESTS | 35 | 46 | 1433600 | ||
221715859 | Morphymorphymorphy | J | Sept. 3, 2023, 3:46 p.m. | OK | GNU C++17 (64) | TESTS | 35 | 46 | 3891200 | ||
221724157 | TheScrasse jamesbamber MrBrionix | J | Sept. 3, 2023, 4:47 p.m. | OK | GNU C++17 (64) | TESTS | 35 | 46 | 4096000 | ||
221724124 | Rubikun | J | Sept. 3, 2023, 4:47 p.m. | OK | GNU C++17 (64) | TESTS | 35 | 61 | 1536000 | ||
221728786 | kotatsugame | J | Sept. 3, 2023, 5:23 p.m. | OK | GNU C++17 (64) | TESTS | 35 | 62 | 2560000 | ||
221709462 | zihouzhong ttklwxx Arraiter | J | Sept. 3, 2023, 3:04 p.m. | OK | GNU C++17 (64) | TESTS | 35 | 62 | 4096000 | ||
221720525 | kotatsugame | J | Sept. 3, 2023, 4:20 p.m. | OK | GNU C++17 (64) | TESTS | 35 | 78 | 2560000 | ||
221775931 | rniya | J | Sept. 4, 2023, 5:58 a.m. | OK | GNU C++17 (64) | TESTS | 35 | 78 | 4096000 | ||
221712125 | sapphire15 tokusakurai torisasami | J | Sept. 3, 2023, 3:21 p.m. | OK | GNU C++17 (64) | TESTS | 35 | 93 | 9318400 | ||
221716859 | HuaJun limanjun feeder1 | J | Sept. 3, 2023, 3:54 p.m. | OK | GNU C++20 (64) | TESTS | 35 | 31 | 3993600 | ||
221716557 | AlternatingCurrent znstz2018 grass8sheep | J | Sept. 3, 2023, 3:51 p.m. | OK | GNU C++20 (64) | TESTS | 35 | 31 | 3993600 | ||
221707228 | Roll_Num_56 Iftekhar_Hakim_K mahdi.hasnat | J | Sept. 3, 2023, 2:50 p.m. | OK | GNU C++20 (64) | TESTS | 35 | 31 | 3993600 | ||
221700600 | 4fecta amsraman BucketPotato | J | Sept. 3, 2023, 2:12 p.m. | OK | GNU C++20 (64) | TESTS | 35 | 46 | 3891200 | ||
221763150 | IceYukino | J | Sept. 4, 2023, 2:22 a.m. | OK | GNU C++20 (64) | TESTS | 35 | 46 | 3993600 | ||
221757718 | _LeMur_ | J | Sept. 3, 2023, 11:58 p.m. | OK | GNU C++20 (64) | TESTS | 35 | 46 | 3993600 | ||
221717934 | 353cerega 244mhq | J | Sept. 3, 2023, 4:01 p.m. | OK | GNU C++20 (64) | TESTS | 35 | 46 | 3993600 | ||
221725712 | Arch_of_Triumph aibark | J | Sept. 3, 2023, 4:58 p.m. | OK | GNU C++20 (64) | TESTS | 35 | 46 | 4300800 | ||
221749889 | Mangooste | J | Sept. 3, 2023, 8:49 p.m. | OK | GNU C++20 (64) | TESTS | 35 | 62 | 4096000 | ||
221714762 | maspy | J | Sept. 3, 2023, 3:39 p.m. | OK | GNU C++20 (64) | TESTS | 35 | 62 | 4096000 | ||
221718293 | arvindf232 | J | Sept. 3, 2023, 4:03 p.m. | OK | Kotlin 1.6 | TESTS | 35 | 483 | 0 |
Back to search problems