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 |
---|---|---|---|---|---|---|
( 24925 ) | A | Ambitious Kid | PROGRAMMING | math |
B"Chaneka, Pak Chanek's child, is an ambitious kid, so Pak Chanek gives her the following problem to test her ambition. Given an array of integers [A_1, A_2, A_3, ldots, A_N] . In one operation, Chaneka can choose one element, then increase or decrease the element's value by 1 . Chaneka can do that operation multiple times, even for different elements. What is the minimum number of operations that must be done to make it such that A_1 x A_2 x A_3 x ldots x A_N = 0 ? The first line contains a single integer N ( 1 <= q N <= q 10^5 ). The second line contains N integers A_1, A_2, A_3, ldots, A_N ( -10^5 <= q A_i <= q 10^5 ). An integer representing the minimum number of operations that must be done to make it such that A_1 x A_2 x A_3 x ldots x A_N = 0 . In the first example, initially, A_1 x A_2 x A_3=2 x (-6) x 5=-60 . Chaneka can do the following sequence of operations: In the third example, Chaneka does not have to do any operations, because from the start, it already holds that A_1 x A_2 x A_3 x A_4 x A_5=0 x (-1) x 0 x 1 x 0=0 "... |
COMPFEST 15 Preliminary — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
221754218 | bluemegane | A | Sept. 3, 2023, 10:17 p.m. | OK | C# 8 | TESTS | 30 | 139 | 8908800 | ||
221754015 | bluemegane | A | Sept. 3, 2023, 10:12 p.m. | OK | C# 8 | TESTS | 30 | 155 | 9113600 | ||
221740517 | Riladavin | A | Sept. 3, 2023, 7:05 p.m. | OK | Clang++20 Diagnostics | TESTS | 30 | 374 | 1024000 | ||
221765728 | khanhcodebug | A | Sept. 4, 2023, 3:15 a.m. | OK | FPC | TESTS | 30 | 31 | 409600 | ||
221729830 | Sayem11 | A | Sept. 3, 2023, 5:32 p.m. | OK | GNU C11 | TESTS | 30 | 31 | 0 | ||
221733043 | iffatul_anon | A | Sept. 3, 2023, 6:03 p.m. | OK | GNU C11 | TESTS | 30 | 31 | 0 | ||
221706702 | Ronit5 mruds Laksh_J | A | Sept. 3, 2023, 2:46 p.m. | OK | GNU C11 | TESTS | 30 | 31 | 0 | ||
221693931 | GesusM | A | Sept. 3, 2023, 1:37 p.m. | OK | GNU C11 | TESTS | 30 | 31 | 0 | ||
221695690 | h3lic0pt3r polka_rat | A | Sept. 3, 2023, 1:46 p.m. | OK | GNU C11 | TESTS | 30 | 31 | 0 | ||
221701583 | Hacv16 | A | Sept. 3, 2023, 2:17 p.m. | OK | GNU C11 | TESTS | 30 | 31 | 0 | ||
221713511 | manish1127 | A | Sept. 3, 2023, 3:30 p.m. | OK | GNU C11 | TESTS | 30 | 31 | 409600 | ||
221758596 | frrounok2021 | A | Sept. 4, 2023, 12:25 a.m. | OK | GNU C11 | TESTS | 30 | 31 | 409600 | ||
221723243 | The_Technical_Difficulty | A | Sept. 3, 2023, 4:40 p.m. | OK | GNU C11 | TESTS | 30 | 31 | 409600 | ||
221721673 | whoami13 | A | Sept. 3, 2023, 4:29 p.m. | OK | GNU C11 | TESTS | 30 | 31 | 409600 | ||
221755421 | feather_zzl | A | Sept. 3, 2023, 10:46 p.m. | OK | GNU C++14 | TESTS | 30 | 31 | 0 | ||
221768258 | rozan_nich | A | Sept. 4, 2023, 3:57 a.m. | OK | GNU C++14 | TESTS | 30 | 31 | 0 | ||
221766374 | rfpermen | A | Sept. 4, 2023, 3:26 a.m. | OK | GNU C++14 | TESTS | 30 | 31 | 0 | ||
221765724 | luogu_bot1 | A | Sept. 4, 2023, 3:15 a.m. | OK | GNU C++14 | TESTS | 30 | 31 | 0 | ||
221741508 | kuldeepkushwaha | A | Sept. 3, 2023, 7:14 p.m. | OK | GNU C++14 | TESTS | 30 | 31 | 0 | ||
221740823 | a5a7 | A | Sept. 3, 2023, 7:08 p.m. | OK | GNU C++14 | TESTS | 30 | 31 | 0 | ||
221731174 | Sakib185 | A | Sept. 3, 2023, 5:45 p.m. | OK | GNU C++14 | TESTS | 30 | 31 | 0 | ||
221716900 | blazing_zap18 | A | Sept. 3, 2023, 3:54 p.m. | OK | GNU C++14 | TESTS | 30 | 31 | 0 | ||
221714599 | sybsyb | A | Sept. 3, 2023, 3:38 p.m. | OK | GNU C++14 | TESTS | 30 | 31 | 0 | ||
221703713 | logicAn | A | Sept. 3, 2023, 2:29 p.m. | OK | GNU C++14 | TESTS | 30 | 31 | 0 | ||
221707377 | AK2507 Jain_Shivam Prasanna_Kante | A | Sept. 3, 2023, 2:50 p.m. | OK | GNU C++17 | TESTS | 30 | 31 | 0 | ||
221712019 | NguyenTrg | A | Sept. 3, 2023, 3:20 p.m. | OK | GNU C++17 | TESTS | 30 | 31 | 0 | ||
221712718 | moikfer | A | Sept. 3, 2023, 3:25 p.m. | OK | GNU C++17 | TESTS | 30 | 31 | 0 | ||
221731191 | meets45 | A | Sept. 3, 2023, 5:45 p.m. | OK | GNU C++17 | TESTS | 30 | 31 | 0 | ||
221736320 | Hamsar | A | Sept. 3, 2023, 6:35 p.m. | OK | GNU C++17 | TESTS | 30 | 31 | 0 | ||
221760632 | Capricoder_Jupie | A | Sept. 4, 2023, 1:20 a.m. | OK | GNU C++17 | TESTS | 30 | 31 | 0 | ||
221760748 | DawnFall19 | A | Sept. 4, 2023, 1:23 a.m. | OK | GNU C++17 | TESTS | 30 | 31 | 0 | ||
221767816 | Elsheshtawy | A | Sept. 4, 2023, 3:50 a.m. | OK | GNU C++17 | TESTS | 30 | 31 | 0 | ||
221772664 | Radiaa 1533050560 Angriliset | A | Sept. 4, 2023, 5:12 a.m. | OK | GNU C++17 | TESTS | 30 | 31 | 0 | ||
221772957 | shb123 oipotato | A | Sept. 4, 2023, 5:16 a.m. | OK | GNU C++17 | TESTS | 30 | 31 | 0 | ||
221759721 | Capps | A | Sept. 4, 2023, 12:55 a.m. | OK | GNU C++17 (64) | TESTS | 30 | 15 | 0 | ||
221772282 | Njaso | A | Sept. 4, 2023, 5:06 a.m. | OK | GNU C++17 (64) | TESTS | 30 | 30 | 0 | ||
221762289 | KRISH_FOUSC | A | Sept. 4, 2023, 2:02 a.m. | OK | GNU C++17 (64) | TESTS | 30 | 30 | 1638400 | ||
221737906 | wwdd | A | Sept. 3, 2023, 6:46 p.m. | OK | GNU C++17 (64) | TESTS | 30 | 30 | 2048000 | ||
221729357 | zach24 | A | Sept. 3, 2023, 5:28 p.m. | OK | GNU C++17 (64) | TESTS | 30 | 31 | 0 | ||
221722393 | kematian | A | Sept. 3, 2023, 4:34 p.m. | OK | GNU C++17 (64) | TESTS | 30 | 31 | 0 | ||
221721498 | _huma_yun | A | Sept. 3, 2023, 4:28 p.m. | OK | GNU C++17 (64) | TESTS | 30 | 31 | 0 | ||
221773282 | AuroraAlaska | A | Sept. 4, 2023, 5:21 a.m. | OK | GNU C++17 (64) | TESTS | 30 | 31 | 0 | ||
221771811 | Linver | A | Sept. 4, 2023, 4:58 a.m. | OK | GNU C++17 (64) | TESTS | 30 | 31 | 0 | ||
221734936 | arBurhan | A | Sept. 3, 2023, 6:23 p.m. | OK | GNU C++17 (64) | TESTS | 30 | 31 | 0 | ||
221701705 | Mahbub_Turza | A | Sept. 3, 2023, 2:18 p.m. | OK | GNU C++20 (64) | TESTS | 30 | 15 | 0 | ||
221773553 | baluteshih | A | Sept. 4, 2023, 5:25 a.m. | OK | GNU C++20 (64) | TESTS | 30 | 15 | 0 | ||
221751642 | xdliw | A | Sept. 3, 2023, 9:21 p.m. | OK | GNU C++20 (64) | TESTS | 30 | 15 | 0 | ||
221744065 | goodcdy | A | Sept. 3, 2023, 7:37 p.m. | OK | GNU C++20 (64) | TESTS | 30 | 15 | 0 | ||
221730045 | Bazzas13 | A | Sept. 3, 2023, 5:34 p.m. | OK | GNU C++20 (64) | TESTS | 30 | 15 | 0 | ||
221719779 | nlk_12 | A | Sept. 3, 2023, 4:14 p.m. | OK | GNU C++20 (64) | TESTS | 30 | 15 | 0 | ||
221709699 | dinzihan cylyyds123 Cy2anye | A | Sept. 3, 2023, 3:05 p.m. | OK | GNU C++20 (64) | TESTS | 30 | 15 | 0 | ||
221706182 | VerweliuS | A | Sept. 3, 2023, 2:43 p.m. | OK | GNU C++20 (64) | TESTS | 30 | 15 | 0 | ||
221704189 | Naveen_munavath | A | Sept. 3, 2023, 2:31 p.m. | OK | GNU C++20 (64) | TESTS | 30 | 15 | 0 | ||
221758496 | timecomplexity | A | Sept. 4, 2023, 12:22 a.m. | OK | GNU C++20 (64) | TESTS | 30 | 15 | 409600 | ||
221766811 | Sempr | A | Sept. 4, 2023, 3:33 a.m. | OK | Go | TESTS | 30 | 31 | 5120000 | ||
221738191 | k1rill_fedoseev | A | Sept. 3, 2023, 6:48 p.m. | OK | Go | TESTS | 30 | 31 | 5222400 | ||
221699379 | markmoretto | A | Sept. 3, 2023, 2:05 p.m. | OK | Go | TESTS | 30 | 46 | 1024000 | ||
221702098 | itsbrajeshsingh | A | Sept. 3, 2023, 2:20 p.m. | OK | Java 11 | TESTS | 30 | 187 | 0 | ||
221731017 | aishwarykesarwani | A | Sept. 3, 2023, 5:44 p.m. | OK | Java 11 | TESTS | 30 | 202 | 0 | ||
221700659 | theSSS | A | Sept. 3, 2023, 2:12 p.m. | OK | Java 11 | TESTS | 30 | 218 | 0 | ||
221729938 | DNotNice | A | Sept. 3, 2023, 5:33 p.m. | OK | Java 11 | TESTS | 30 | 265 | 2969600 | ||
221693664 | rk6263 | A | Sept. 3, 2023, 1:36 p.m. | OK | Java 11 | TESTS | 30 | 311 | 0 | ||
221766942 | checnzhouuuuu | A | Sept. 4, 2023, 3:35 a.m. | OK | Java 11 | TESTS | 30 | 311 | 0 | ||
221761394 | snkv | A | Sept. 4, 2023, 1:38 a.m. | OK | Java 11 | TESTS | 30 | 311 | 0 | ||
221716864 | _madhuri_26_ | A | Sept. 3, 2023, 3:54 p.m. | OK | Java 11 | TESTS | 30 | 311 | 0 | ||
221710509 | prasanthi5337 | A | Sept. 3, 2023, 3:10 p.m. | OK | Java 11 | TESTS | 30 | 311 | 0 | ||
221764692 | AldyAlexanderss | A | Sept. 4, 2023, 2:57 a.m. | OK | Java 11 | TESTS | 30 | 312 | 0 | ||
221767761 | rdhakar246 | A | Sept. 4, 2023, 3:49 a.m. | OK | Java 17 | TESTS | 30 | 217 | 512000 | ||
221715702 | anand_mishra_ | A | Sept. 3, 2023, 3:45 p.m. | OK | Java 17 | TESTS | 30 | 218 | 614400 | ||
221702583 | sergey.chistofor | A | Sept. 3, 2023, 2:22 p.m. | OK | Java 17 | TESTS | 30 | 233 | 0 | ||
221717960 | shashankp10 | A | Sept. 3, 2023, 4:01 p.m. | OK | Java 17 | TESTS | 30 | 233 | 307200 | ||
221718827 | Atlas | A | Sept. 3, 2023, 4:07 p.m. | OK | Java 17 | TESTS | 30 | 233 | 614400 | ||
221757880 | AmenCoder1 | A | Sept. 4, 2023, 12:03 a.m. | OK | Java 17 | TESTS | 30 | 342 | 716800 | ||
221725971 | sly_3703 | A | Sept. 3, 2023, 5 p.m. | OK | Java 17 | TESTS | 30 | 343 | 819200 | ||
221699942 | Ansh_2003 | A | Sept. 3, 2023, 2:08 p.m. | OK | Java 17 | TESTS | 30 | 358 | 614400 | ||
221692063 | raghad18 | A | Sept. 3, 2023, 1:28 p.m. | OK | Java 17 | TESTS | 30 | 358 | 614400 | ||
221725799 | i.e.Dhruv | A | Sept. 3, 2023, 4:59 p.m. | OK | Java 17 | TESTS | 30 | 358 | 716800 | ||
221751214 | EH9_Cuba | A | Sept. 3, 2023, 9:13 p.m. | OK | Java 8 | TESTS | 30 | 124 | 0 | ||
221704136 | Nanthakumar06 | A | Sept. 3, 2023, 2:31 p.m. | OK | Java 8 | TESTS | 30 | 124 | 0 | ||
221696278 | jitu7033 | A | Sept. 3, 2023, 1:49 p.m. | OK | Java 8 | TESTS | 30 | 124 | 0 | ||
221702357 | harry1995 | A | Sept. 3, 2023, 2:21 p.m. | OK | Java 8 | TESTS | 30 | 139 | 0 | ||
221696680 | Kuuuuuuuuu | A | Sept. 3, 2023, 1:51 p.m. | OK | Java 8 | TESTS | 30 | 140 | 0 | ||
221704764 | itsvarsharma | A | Sept. 3, 2023, 2:35 p.m. | OK | Java 8 | TESTS | 30 | 171 | 0 | ||
221720553 | ChiefPatwal | A | Sept. 3, 2023, 4:20 p.m. | OK | Java 8 | TESTS | 30 | 218 | 0 | ||
221765868 | nataly.falero | A | Sept. 4, 2023, 3:18 a.m. | OK | Java 8 | TESTS | 30 | 233 | 0 | ||
221743218 | Sneilh | A | Sept. 3, 2023, 7:29 p.m. | OK | Java 8 | TESTS | 30 | 233 | 0 | ||
221701574 | marthapavan2002 | A | Sept. 3, 2023, 2:17 p.m. | OK | Java 8 | TESTS | 30 | 233 | 0 | ||
221703692 | kaladosa737 ArvindIyer Itachi_Programmer | A | Sept. 3, 2023, 2:28 p.m. | OK | MS C++ 2017 | TESTS | 30 | 46 | 409600 | ||
221773385 | 153floppa | A | Sept. 4, 2023, 5:22 a.m. | OK | MS C++ 2017 | TESTS | 30 | 78 | 0 | ||
221713058 | TrgHuy | A | Sept. 3, 2023, 3:27 p.m. | OK | MS C++ 2017 | TESTS | 30 | 78 | 0 | ||
221707745 | GareevBulat | A | Sept. 3, 2023, 2:53 p.m. | OK | MS C++ 2017 | TESTS | 30 | 78 | 0 | ||
221706212 | NNN1709 | A | Sept. 3, 2023, 2:43 p.m. | OK | MS C++ 2017 | TESTS | 30 | 78 | 0 | ||
221699428 | jinada7 | A | Sept. 3, 2023, 2:06 p.m. | OK | MS C++ 2017 | TESTS | 30 | 78 | 0 | ||
221697057 | InterstellarGuo | A | Sept. 3, 2023, 1:53 p.m. | OK | MS C++ 2017 | TESTS | 30 | 78 | 0 | ||
221727739 | nadasoudi7 | A | Sept. 3, 2023, 5:13 p.m. | OK | MS C++ 2017 | TESTS | 30 | 78 | 409600 | ||
221700504 | huaerbujizewang | A | Sept. 3, 2023, 2:11 p.m. | OK | MS C++ 2017 | TESTS | 30 | 78 | 409600 | ||
221693422 | ZYQi | A | Sept. 3, 2023, 1:35 p.m. | OK | MS C++ 2017 | TESTS | 30 | 78 | 819200 | ||
221752749 | circle977 | A | Sept. 3, 2023, 9:43 p.m. | OK | Perl | TESTS | 30 | 93 | 16076800 | ||
221751129 | TravellerAbdulAlim | A | Sept. 3, 2023, 9:11 p.m. | OK | PHP | TESTS | 30 | 62 | 16793600 | ||
221745931 | 0xROoT | A | Sept. 3, 2023, 7:58 p.m. | OK | PyPy 3 | TESTS | 30 | 109 | 8601600 | ||
221703070 | Rahat15-4583 Rhrobin439 80r0_V41 | A | Sept. 3, 2023, 2:25 p.m. | OK | PyPy 3 | TESTS | 30 | 124 | 8601600 | ||
221706634 | Vashi | A | Sept. 3, 2023, 2:46 p.m. | OK | PyPy 3 | TESTS | 30 | 124 | 8704000 | ||
221769990 | Muwahid_Ayaan | A | Sept. 4, 2023, 4:27 a.m. | OK | PyPy 3 | TESTS | 30 | 140 | 10854400 | ||
221741132 | Rittin_Sehgal | A | Sept. 3, 2023, 7:11 p.m. | OK | PyPy 3 | TESTS | 30 | 155 | 10649600 | ||
221739788 | Anupam_1925 | A | Sept. 3, 2023, 7 p.m. | OK | PyPy 3 | TESTS | 30 | 155 | 10649600 | ||
221734371 | tejas558 | A | Sept. 3, 2023, 6:17 p.m. | OK | PyPy 3 | TESTS | 30 | 155 | 10649600 | ||
221720116 | geethapriyanka | A | Sept. 3, 2023, 4:17 p.m. | OK | PyPy 3 | TESTS | 30 | 155 | 10649600 | ||
221691831 | heisenberg1307 | A | Sept. 3, 2023, 1:27 p.m. | OK | PyPy 3 | TESTS | 30 | 155 | 10649600 | ||
221699919 | 3062_8 | A | Sept. 3, 2023, 2:08 p.m. | OK | PyPy 3 | TESTS | 30 | 155 | 10752000 | ||
221691922 | bilsen leopold.hermansson | A | Sept. 3, 2023, 1:27 p.m. | OK | PyPy 3-64 | TESTS | 30 | 62 | 10854400 | ||
221729544 | ajxu2 | A | Sept. 3, 2023, 5:30 p.m. | OK | PyPy 3-64 | TESTS | 30 | 77 | 10035200 | ||
221735748 | GopalK | A | Sept. 3, 2023, 6:31 p.m. | OK | PyPy 3-64 | TESTS | 30 | 77 | 10137600 | ||
221704921 | nate.wong.11121 | A | Sept. 3, 2023, 2:36 p.m. | OK | PyPy 3-64 | TESTS | 30 | 77 | 10137600 | ||
221692333 | Prince-Aegon | A | Sept. 3, 2023, 1:29 p.m. | OK | PyPy 3-64 | TESTS | 30 | 77 | 10137600 | ||
221707964 | Hr_Wp | A | Sept. 3, 2023, 2:54 p.m. | OK | PyPy 3-64 | TESTS | 30 | 77 | 10240000 | ||
221728790 | the_end2001 | A | Sept. 3, 2023, 5:23 p.m. | OK | PyPy 3-64 | TESTS | 30 | 77 | 10854400 | ||
221712523 | runs_664 | A | Sept. 3, 2023, 3:23 p.m. | OK | PyPy 3-64 | TESTS | 30 | 77 | 10854400 | ||
221754036 | DP_FORMULA | A | Sept. 3, 2023, 10:13 p.m. | OK | PyPy 3-64 | TESTS | 30 | 77 | 11673600 | ||
221715587 | K_a_r_a_s_u | A | Sept. 3, 2023, 3:45 p.m. | OK | PyPy 3-64 | TESTS | 30 | 77 | 11673600 | ||
221717828 | amiba | A | Sept. 3, 2023, 4 p.m. | OK | Python 3 | TESTS | 30 | 62 | 11059200 | ||
221730218 | Pash_Mak | A | Sept. 3, 2023, 5:36 p.m. | OK | Python 3 | TESTS | 30 | 62 | 13926400 | ||
221721234 | Aditya11S04 | A | Sept. 3, 2023, 4:26 p.m. | OK | Python 3 | TESTS | 30 | 62 | 13926400 | ||
221718876 | anusha_tadi123 | A | Sept. 3, 2023, 4:07 p.m. | OK | Python 3 | TESTS | 30 | 62 | 13926400 | ||
221715693 | anjalisaride546 | A | Sept. 3, 2023, 3:45 p.m. | OK | Python 3 | TESTS | 30 | 62 | 13926400 | ||
221709031 | vishnusaiankam12 | A | Sept. 3, 2023, 3:01 p.m. | OK | Python 3 | TESTS | 30 | 62 | 13926400 | ||
221703495 | kolla_sasanka | A | Sept. 3, 2023, 2:27 p.m. | OK | Python 3 | TESTS | 30 | 62 | 13926400 | ||
221696716 | Nive2103 | A | Sept. 3, 2023, 1:51 p.m. | OK | Python 3 | TESTS | 30 | 62 | 13926400 | ||
221693140 | meghana_31 | A | Sept. 3, 2023, 1:33 p.m. | OK | Python 3 | TESTS | 30 | 62 | 13926400 | ||
221694703 | wdllmh | A | Sept. 3, 2023, 1:41 p.m. | OK | Python 3 | TESTS | 30 | 77 | 11059200 | ||
221736371 | herocharge | A | Sept. 3, 2023, 6:36 p.m. | OK | Ruby 3 | TESTS | 30 | 326 | 8499200 | ||
221746236 | ihnaqi | A | Sept. 3, 2023, 8:01 p.m. | OK | Rust 2021 | TESTS | 30 | 15 | 3174400 |
Back to search problems