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 |
---|---|---|---|---|---|---|
1987 | EPIC Institute of Technology Round Summer 2024 (Div. 1 + Div. 2) | FINISHED | False | 10800 | 17421863 | June 30, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1166 ) | F1 | Interesting Problem (Easy Version) | PROGRAMMING | dp |
B'This is the easy version of the problem. The only difference between the two versions is the constraint on n . You can make hacks only if both versions of the problem are solved. You are given an array of integers a of length n . In one operation, you will perform the following two-step process: Find the maximum number of times that you can perform the operation above. Each test contains multiple test cases. The first line of input contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 100 ) -- the length of the array a . The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= n ) -- the elements of the array a . It is guaranteed that the sum of n over all test cases does not exceed 100 . For each test case, output a single integer -- the maximum number of times that you can perform the operation. In the first test case, one possible optimal sequence of operations is [ 1, 5, color{red}{3}, color{red}{2}, 4 ] rightarrow [ color{red}{1}, color{red}{5}, 4] rightarrow [4] . In the third test case, one possible optimal sequence of operations is [1, color{red}{2}, color{red}{3}] rightarrow [1] . '... |
EPIC Institute of Technology Round Summer 2024 (Div. 1 + Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
268260627 | BINYU | F1 | July 1, 2024, 4:18 a.m. | OK | C++14 (GCC 6-32) | TESTS | 46 | 46 | 1024000 | ||
268247907 | ab1aze | F1 | July 1, 2024, 1:02 a.m. | OK | C++14 (GCC 6-32) | TESTS | 46 | 46 | 2662400 | ||
268253617 | hqmm | F1 | July 1, 2024, 2:46 a.m. | OK | C++14 (GCC 6-32) | TESTS | 46 | 61 | 2662400 | ||
268266493 | cjh_hhz | F1 | July 1, 2024, 5:29 a.m. | OK | C++14 (GCC 6-32) | TESTS | 46 | 61 | 3379200 | ||
268255391 | shiqingbaiya666 | F1 | July 1, 2024, 3:11 a.m. | OK | C++14 (GCC 6-32) | TESTS | 46 | 61 | 4096000 | ||
268219740 | Imdie | F1 | June 30, 2024, 5:32 p.m. | OK | C++14 (GCC 6-32) | TESTS | 46 | 62 | 204800 | ||
268219030 | JTree | F1 | June 30, 2024, 5:31 p.m. | OK | C++14 (GCC 6-32) | TESTS | 46 | 62 | 4710400 | ||
268212779 | ImmortaLimit | F1 | June 30, 2024, 5:12 p.m. | OK | C++14 (GCC 6-32) | TESTS | 46 | 62 | 19456000 | ||
268238557 | Celebrate | F1 | June 30, 2024, 9:24 p.m. | OK | C++14 (GCC 6-32) | TESTS | 46 | 77 | 102400 | ||
268215705 | eggegg185 | F1 | June 30, 2024, 5:21 p.m. | OK | C++14 (GCC 6-32) | TESTS | 46 | 77 | 102400 | ||
268248231 | GALA | F1 | July 1, 2024, 1:09 a.m. | OK | C++17 (GCC 7-32) | TESTS | 46 | 46 | 0 | ||
268249765 | taiwanguo | F1 | July 1, 2024, 1:39 a.m. | OK | C++17 (GCC 7-32) | TESTS | 46 | 46 | 2969600 | ||
268266545 | noob_ka_alt | F1 | July 1, 2024, 5:29 a.m. | OK | C++17 (GCC 7-32) | TESTS | 46 | 61 | 0 | ||
268267721 | Sparkle_Twilight | F1 | July 1, 2024, 5:41 a.m. | OK | C++17 (GCC 7-32) | TESTS | 46 | 61 | 0 | ||
268229483 | Mkswll | F1 | June 30, 2024, 7:21 p.m. | OK | C++17 (GCC 7-32) | TESTS | 46 | 61 | 2662400 | ||
268216622 | SpinSpen | F1 | June 30, 2024, 5:24 p.m. | OK | C++17 (GCC 7-32) | TESTS | 46 | 62 | 0 | ||
268248821 | hhhyh | F1 | July 1, 2024, 1:20 a.m. | OK | C++17 (GCC 7-32) | TESTS | 46 | 62 | 0 | ||
268232248 | nishkarsh | F1 | June 30, 2024, 7:53 p.m. | OK | C++17 (GCC 7-32) | TESTS | 46 | 62 | 0 | ||
268227482 | Imagine.2019 | F1 | June 30, 2024, 6:56 p.m. | OK | C++17 (GCC 7-32) | TESTS | 46 | 62 | 0 | ||
268268819 | Luca | F1 | July 1, 2024, 5:52 a.m. | OK | C++17 (GCC 7-32) | TESTS | 46 | 62 | 102400 | ||
268244812 | Sana | F1 | June 30, 2024, 11:49 p.m. | OK | C++20 (GCC 13-64) | TESTS | 46 | 46 | 0 | ||
268256538 | Irmuun.Ch | F1 | July 1, 2024, 3:26 a.m. | OK | C++20 (GCC 13-64) | TESTS | 46 | 46 | 0 | ||
268250106 | MisterReaper | F1 | July 1, 2024, 1:46 a.m. | OK | C++20 (GCC 13-64) | TESTS | 46 | 46 | 0 | ||
268247495 | houzhiyuan123 | F1 | July 1, 2024, 12:53 a.m. | OK | C++20 (GCC 13-64) | TESTS | 46 | 46 | 0 | ||
268264626 | yemuzhe | F1 | July 1, 2024, 5:07 a.m. | OK | C++20 (GCC 13-64) | TESTS | 46 | 46 | 2560000 | ||
268255791 | suomynonA | F1 | July 1, 2024, 3:16 a.m. | OK | C++20 (GCC 13-64) | TESTS | 46 | 46 | 2662400 | ||
268257025 | skip2004 | F1 | July 1, 2024, 3:33 a.m. | OK | C++20 (GCC 13-64) | TESTS | 46 | 46 | 5222400 | ||
268232660 | Drakkon | F1 | June 30, 2024, 7:58 p.m. | OK | C++20 (GCC 13-64) | TESTS | 46 | 46 | 7884800 | ||
268233927 | Gamal74 | F1 | June 30, 2024, 8:14 p.m. | OK | C++20 (GCC 13-64) | TESTS | 46 | 46 | 7884800 | ||
268255050 | -.--..-..... | F1 | July 1, 2024, 3:06 a.m. | OK | C++20 (GCC 13-64) | TESTS | 46 | 61 | 0 | ||
268213937 | KumaTachiRen | F1 | June 30, 2024, 5:16 p.m. | OK | C# 8 | TESTS | 46 | 140 | 4403200 | ||
268237817 | rainboy | F1 | June 30, 2024, 9:13 p.m. | OK | GNU C11 | TESTS | 46 | 46 | 2662400 | ||
268243764 | profchi | F1 | June 30, 2024, 11:21 p.m. | OK | Java 8 | TESTS | 46 | 156 | 5120000 | ||
268208550 | omeganot | F1 | June 30, 2024, 4:59 p.m. | OK | Java 8 | TESTS | 46 | 264 | 39014400 | ||
268211441 | toam | F1 | June 30, 2024, 5:08 p.m. | OK | PyPy 3-64 | TESTS | 46 | 124 | 3072000 | ||
268239258 | M1ngXu | F1 | June 30, 2024, 9:38 p.m. | OK | Rust 2021 | TESTS | 46 | 77 | 0 |
Back to search problems