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 |
---|---|---|---|---|---|---|
1709 | Educational Codeforces Round 132 (Rated for Div. 2) | FINISHED | False | 7200 | 78765863 | July 21, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 23219 ) | B | Also Try Minecraft | PROGRAMMING | data structures implementation |
B'You are beta testing the new secret Terraria update. This update will add quests to the game! Simply, the world map can be represented as an array of length n , where the i -th column of the world has height a_i . There are m quests you have to test. The j -th of them is represented by two integers s_j and t_j . In this quest, you have to go from the column s_j to the column t_j . At the start of the quest, you are appearing at the column s_j . In one move, you can go from the column x to the column x-1 or to the column x+1 . In this version, you have Spectre Boots, which allow you to fly. Since it is a beta version, they are bugged, so they only allow you to fly when you are going up and have infinite fly duration. When you are moving from the column with the height p to the column with the height q , then you get some amount of fall damage. If the height p is greater than the height q , you get p - q fall damage, otherwise you fly up and get 0 damage. For each of the given quests, determine the minimum amount of fall damage you can get during this quest. The first line of the input contains two integers n and m ( 2 <= n <= 10^5; 1 <= m <= 10^5 ) -- the number of columns in the world and the number of quests you have to test, respectively. The second line of the input contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^9 ), where a_i is the height of the i -th column of the world. The next m lines describe quests. The j -th of them contains two integers s_j and t_j ( 1 <= s_j, t_j <= n; s_j ne t_j ), which means you have to move from the column s_j to the column t_j during the j -th quest. Note that s_j can be greater than t_j . Print m integers. The j -th of them should be the minimum amount of fall damage you can get during th'... |
105164 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
165252787 | szzz- | B | July 22, 2022, 2:07 a.m. | OK | C# 10 | TESTS | 4 | 170 | 21811200 | ||
165260107 | yousuf19 | B | July 22, 2022, 3:50 a.m. | OK | C# 10 | TESTS | 4 | 639 | 15769600 | ||
165242590 | pruebausuario231 | B | July 21, 2022, 10:17 p.m. | OK | Clang++17 Diagnostics | TESTS | 4 | 1528 | 2457600 | ||
165242611 | pruebausuario231 | B | July 21, 2022, 10:18 p.m. | OK | Clang++20 Diagnostics | TESTS | 4 | 1512 | 2457600 | ||
165226268 | kapil32 | B | July 21, 2022, 5:53 p.m. | OK | GNU C11 | TESTS | 4 | 483 | 2355200 | ||
165231322 | tonmoy00saha | B | July 21, 2022, 6:51 p.m. | OK | GNU C11 | TESTS | 4 | 498 | 1945600 | ||
165255200 | LeonGymretzka | B | July 22, 2022, 2:41 a.m. | OK | GNU C11 | TESTS | 4 | 498 | 2355200 | ||
165219596 | myholiday | B | July 21, 2022, 4:59 p.m. | OK | GNU C11 | TESTS | 4 | 498 | 3993600 | ||
165227024 | Hamzam21 | B | July 21, 2022, 6:01 p.m. | OK | GNU C11 | TESTS | 4 | 499 | 2355200 | ||
165226048 | Abhishek_Tewatia | B | July 21, 2022, 5:51 p.m. | OK | GNU C11 | TESTS | 4 | 499 | 4812800 | ||
165219924 | myholiday | B | July 21, 2022, 5:01 p.m. | OK | GNU C11 | TESTS | 4 | 514 | 3993600 | ||
165236299 | YC_21 | B | July 21, 2022, 8:08 p.m. | OK | GNU C11 | TESTS | 4 | 529 | 2048000 | ||
165232310 | katherinerh | B | July 21, 2022, 7:04 p.m. | OK | GNU C11 | TESTS | 4 | 529 | 6451200 | ||
165246161 | Yuzuru-zm | B | July 22, 2022, midnight | OK | GNU C11 | TESTS | 4 | 530 | 1638400 | ||
165247538 | jstzmxuan | B | July 22, 2022, 12:34 a.m. | OK | GNU C++14 | TESTS | 4 | 31 | 26112000 | ||
165264610 | jiangbowen | B | July 22, 2022, 4:53 a.m. | OK | GNU C++14 | TESTS | 4 | 46 | 4403200 | ||
165219386 | Lickton | B | July 21, 2022, 4:57 p.m. | OK | GNU C++14 | TESTS | 4 | 77 | 3993600 | ||
165240081 | Tahsin13 | B | July 21, 2022, 9:22 p.m. | OK | GNU C++14 | TESTS | 4 | 93 | 2048000 | ||
165213435 | AkaiShuuichi123 | B | July 21, 2022, 4:34 p.m. | OK | GNU C++14 | TESTS | 4 | 93 | 2048000 | ||
165242633 | thunderous_reign | B | July 21, 2022, 10:18 p.m. | OK | GNU C++14 | TESTS | 4 | 93 | 2048000 | ||
165247039 | gaoshulang | B | July 22, 2022, 12:22 a.m. | OK | GNU C++14 | TESTS | 4 | 93 | 2048000 | ||
165248280 | CEzi_dong_ji | B | July 22, 2022, 12:54 a.m. | OK | GNU C++14 | TESTS | 4 | 93 | 2048000 | ||
165257910 | luogu_bot3 | B | July 22, 2022, 3:18 a.m. | OK | GNU C++14 | TESTS | 4 | 93 | 2457600 | ||
165264260 | rui_er | B | July 22, 2022, 4:48 a.m. | OK | GNU C++14 | TESTS | 4 | 93 | 2457600 | ||
165262818 | Tybjj | B | July 22, 2022, 4:27 a.m. | OK | GNU C++17 | TESTS | 4 | 62 | 1945600 | ||
165224384 | bdhanush | B | July 21, 2022, 5:36 p.m. | OK | GNU C++17 | TESTS | 4 | 93 | 2048000 | ||
165262389 | niqiqi | B | July 22, 2022, 4:21 a.m. | OK | GNU C++17 | TESTS | 4 | 93 | 2048000 | ||
165245073 | coltt | B | July 21, 2022, 11:28 p.m. | OK | GNU C++17 | TESTS | 4 | 93 | 2048000 | ||
165232967 | Gold_Dragon | B | July 21, 2022, 7:14 p.m. | OK | GNU C++17 | TESTS | 4 | 93 | 2355200 | ||
165231020 | Perl32 | B | July 21, 2022, 6:47 p.m. | OK | GNU C++17 | TESTS | 4 | 93 | 2457600 | ||
165264106 | litachloveyou | B | July 22, 2022, 4:46 a.m. | OK | GNU C++17 | TESTS | 4 | 93 | 2457600 | ||
165250577 | Yuki__S2008 | B | July 22, 2022, 1:35 a.m. | OK | GNU C++17 | TESTS | 4 | 93 | 2457600 | ||
165250394 | ttkk | B | July 22, 2022, 1:32 a.m. | OK | GNU C++17 | TESTS | 4 | 93 | 3584000 | ||
165237992 | Imrans | B | July 21, 2022, 8:37 p.m. | OK | GNU C++17 | TESTS | 4 | 93 | 3686400 | ||
165257938 | xhgua | B | July 22, 2022, 3:19 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 61 | 2457600 | ||
165269619 | Z-wzy | B | July 22, 2022, 5:59 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 61 | 6656000 | ||
165243662 | Devansh_2021460 | B | July 21, 2022, 10:46 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 62 | 2355200 | ||
165229517 | RF_Faisal | B | July 21, 2022, 6:29 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 62 | 2355200 | ||
165232981 | SoluckyBhavya9 | B | July 21, 2022, 7:14 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 62 | 2355200 | ||
165266745 | ayush176 | B | July 22, 2022, 5:22 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 62 | 2457600 | ||
165267522 | joecai | B | July 22, 2022, 5:33 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 62 | 2457600 | ||
165267414 | sugam10 | B | July 22, 2022, 5:31 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 62 | 2457600 | ||
165245910 | RetsaZC19 | B | July 21, 2022, 11:52 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 62 | 2457600 | ||
165233803 | jesse_pinkman_619 | B | July 21, 2022, 7:27 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 62 | 2457600 | ||
165226640 | mysteri0us7 | B | July 21, 2022, 5:57 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 31 | 2048000 | ||
165214685 | HuParry | B | July 21, 2022, 4:37 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 46 | 1638400 | ||
165221378 | LookingForMommy | B | July 21, 2022, 5:10 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 46 | 2048000 | ||
165224851 | ftiasch | B | July 21, 2022, 5:40 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 46 | 2048000 | ||
165229336 | aman_bedi | B | July 21, 2022, 6:28 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 46 | 2048000 | ||
165232850 | jaysudani | B | July 21, 2022, 7:12 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 46 | 2048000 | ||
165255340 | Sorry_Hanasaki | B | July 22, 2022, 2:43 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 46 | 2048000 | ||
165265342 | Akib_12 | B | July 22, 2022, 5:02 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 46 | 2048000 | ||
165218730 | HossamHamza0_0 | B | July 21, 2022, 4:54 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 46 | 2048000 | ||
165263303 | VIP_IITBHU | B | July 22, 2022, 4:34 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 46 | 2355200 | ||
165268929 | nbhakar | B | July 22, 2022, 5:51 a.m. | OK | Java 11 | TESTS | 4 | 234 | 0 | ||
165237263 | tusharpruth | B | July 21, 2022, 8:24 p.m. | OK | Java 11 | TESTS | 4 | 248 | 0 | ||
165217839 | gurkaran_s | B | July 21, 2022, 4:50 p.m. | OK | Java 11 | TESTS | 4 | 248 | 0 | ||
165266302 | vijender_8601 | B | July 22, 2022, 5:16 a.m. | OK | Java 11 | TESTS | 4 | 249 | 0 | ||
165254345 | smlj | B | July 22, 2022, 2:29 a.m. | OK | Java 11 | TESTS | 4 | 249 | 0 | ||
165252363 | aditya2024 | B | July 22, 2022, 2:01 a.m. | OK | Java 11 | TESTS | 4 | 249 | 0 | ||
165264138 | __Serendipity | B | July 22, 2022, 4:46 a.m. | OK | Java 11 | TESTS | 4 | 264 | 0 | ||
165235864 | suhas5979 | B | July 21, 2022, 8:01 p.m. | OK | Java 11 | TESTS | 4 | 264 | 0 | ||
165226470 | praduman14 | B | July 21, 2022, 5:55 p.m. | OK | Java 11 | TESTS | 4 | 264 | 0 | ||
165220831 | prashantgaurav | B | July 21, 2022, 5:06 p.m. | OK | Java 11 | TESTS | 4 | 296 | 0 | ||
165232985 | ajaa_bsdk | B | July 21, 2022, 7:14 p.m. | OK | Java 17 | TESTS | 4 | 311 | 0 | ||
165243889 | ItsZaki | B | July 21, 2022, 10:53 p.m. | OK | Java 17 | TESTS | 4 | 561 | 204800 | ||
165225810 | c201051 | B | July 21, 2022, 5:49 p.m. | OK | Java 17 | TESTS | 4 | 592 | 307200 | ||
165230261 | harman1148 | B | July 21, 2022, 6:38 p.m. | OK | Java 17 | TESTS | 4 | 623 | 5017600 | ||
165243716 | ItsZaki | B | July 21, 2022, 10:47 p.m. | OK | Java 17 | TESTS | 4 | 919 | 409600 | ||
165227440 | naga3257 | B | July 21, 2022, 6:08 p.m. | OK | Java 17 | TESTS | 4 | 919 | 409600 | ||
165214457 | -Jarvis- | B | July 21, 2022, 4:36 p.m. | OK | Java 17 | TESTS | 4 | 982 | 409600 | ||
165235964 | adityadesaia3 | B | July 21, 2022, 8:02 p.m. | OK | Java 17 | TESTS | 4 | 982 | 512000 | ||
165253836 | siddsingh | B | July 22, 2022, 2:22 a.m. | OK | Java 17 | TESTS | 4 | 1200 | 204800 | ||
165226414 | Diaa12360 | B | July 21, 2022, 5:55 p.m. | OK | Java 8 | TESTS | 4 | 155 | 2867200 | ||
165265408 | less_ordinary | B | July 22, 2022, 5:03 a.m. | OK | Java 8 | TESTS | 4 | 156 | 0 | ||
165224601 | BhargavModha | B | July 21, 2022, 5:38 p.m. | OK | Java 8 | TESTS | 4 | 170 | 0 | ||
165226654 | MagentaCobra | B | July 21, 2022, 5:57 p.m. | OK | Java 8 | TESTS | 4 | 171 | 2867200 | ||
165220666 | shrey27tri01 | B | July 21, 2022, 5:05 p.m. | OK | Java 8 | TESTS | 4 | 171 | 6246400 | ||
165214857 | priyaroy3370 | B | July 21, 2022, 4:37 p.m. | OK | Java 8 | TESTS | 4 | 171 | 6553600 | ||
165230481 | jkslyk | B | July 21, 2022, 6:40 p.m. | OK | Java 8 | TESTS | 4 | 187 | 4403200 | ||
165231503 | jkslyk | B | July 21, 2022, 6:53 p.m. | OK | Java 8 | TESTS | 4 | 483 | 5324800 | ||
165249874 | imsd_14 | B | July 22, 2022, 1:24 a.m. | OK | Java 8 | TESTS | 4 | 764 | 0 | ||
165264198 | amanraj01 | B | July 22, 2022, 4:47 a.m. | OK | Java 8 | TESTS | 4 | 764 | 204800 | ||
165258131 | ripity | B | July 22, 2022, 3:21 a.m. | OK | Kotlin 1.6 | TESTS | 4 | 296 | 1638400 | ||
165251733 | M_zhi | B | July 22, 2022, 1:52 a.m. | OK | MS C++ 2017 | TESTS | 4 | 296 | 2457600 | ||
165215119 | the_tudz | B | July 21, 2022, 4:38 p.m. | OK | MS C++ 2017 | TESTS | 4 | 312 | 3174400 | ||
165222084 | kirill06 | B | July 21, 2022, 5:16 p.m. | OK | MS C++ 2017 | TESTS | 4 | 608 | 2048000 | ||
165261571 | ll1109 | B | July 22, 2022, 4:10 a.m. | OK | MS C++ 2017 | TESTS | 4 | 623 | 2048000 | ||
165244947 | laym0n | B | July 21, 2022, 11:23 p.m. | OK | MS C++ 2017 | TESTS | 4 | 623 | 2457600 | ||
165238116 | Omar.ro | B | July 21, 2022, 8:40 p.m. | OK | MS C++ 2017 | TESTS | 4 | 623 | 2457600 | ||
165219847 | RoundLemon | B | July 21, 2022, 5 p.m. | OK | MS C++ 2017 | TESTS | 4 | 623 | 6553600 | ||
165265993 | 6ziv | B | July 22, 2022, 5:12 a.m. | OK | MS C++ 2017 | TESTS | 4 | 654 | 2048000 | ||
165218421 | Nosov_Vovanus2022 | B | July 21, 2022, 4:52 p.m. | OK | MS C++ 2017 | TESTS | 4 | 686 | 2048000 | ||
165218827 | ok_lets_go | B | July 21, 2022, 4:54 p.m. | OK | MS C++ 2017 | TESTS | 4 | 716 | 2457600 | ||
165262064 | NKUCristiano | B | July 22, 2022, 4:16 a.m. | OK | PyPy 3 | TESTS | 4 | 280 | 21811200 | ||
165223360 | gotcoding124 | B | July 21, 2022, 5:26 p.m. | OK | PyPy 3 | TESTS | 4 | 1606 | 16998400 | ||
165257137 | sheknows | B | July 22, 2022, 3:08 a.m. | OK | PyPy 3 | TESTS | 4 | 1606 | 17612800 | ||
165224052 | shriom533 | B | July 21, 2022, 5:33 p.m. | OK | PyPy 3 | TESTS | 4 | 1653 | 14950400 | ||
165240728 | hosamcv0 | B | July 21, 2022, 9:36 p.m. | OK | PyPy 3 | TESTS | 4 | 1653 | 15155200 | ||
165221831 | hosamcv0 | B | July 21, 2022, 5:14 p.m. | OK | PyPy 3 | TESTS | 4 | 1653 | 15155200 | ||
165223204 | gotcoding124 | B | July 21, 2022, 5:25 p.m. | OK | PyPy 3 | TESTS | 4 | 1653 | 16998400 | ||
165221482 | vishu.ut | B | July 21, 2022, 5:11 p.m. | OK | PyPy 3 | TESTS | 4 | 1668 | 17510400 | ||
165216957 | akshat11 | B | July 21, 2022, 4:45 p.m. | OK | PyPy 3 | TESTS | 4 | 1669 | 16384000 | ||
165217871 | akgarg119 | B | July 21, 2022, 4:50 p.m. | OK | PyPy 3 | TESTS | 4 | 1684 | 18739200 | ||
165252443 | pennymagic156 | B | July 22, 2022, 2:02 a.m. | OK | PyPy 3-64 | TESTS | 4 | 186 | 14131200 | ||
165222816 | mintplz | B | July 21, 2022, 5:22 p.m. | OK | PyPy 3-64 | TESTS | 4 | 187 | 13619200 | ||
165253587 | Youarenotgood | B | July 22, 2022, 2:19 a.m. | OK | PyPy 3-64 | TESTS | 4 | 187 | 14131200 | ||
165236714 | dunkin_shepherd | B | July 21, 2022, 8:15 p.m. | OK | PyPy 3-64 | TESTS | 4 | 187 | 18636800 | ||
165215310 | kamtendra_20 | B | July 21, 2022, 4:38 p.m. | OK | PyPy 3-64 | TESTS | 4 | 202 | 14950400 | ||
165227929 | only_noob | B | July 21, 2022, 6:13 p.m. | OK | PyPy 3-64 | TESTS | 4 | 218 | 18329600 | ||
165258829 | shiviDON | B | July 22, 2022, 3:30 a.m. | OK | PyPy 3-64 | TESTS | 4 | 249 | 20480000 | ||
165224527 | pykid05 | B | July 21, 2022, 5:37 p.m. | OK | PyPy 3-64 | TESTS | 4 | 249 | 28467200 | ||
165224138 | OhNoAGirlCoder | B | July 21, 2022, 5:33 p.m. | OK | PyPy 3-64 | TESTS | 4 | 249 | 28467200 | ||
165221276 | abhaumik24 | B | July 21, 2022, 5:09 p.m. | OK | PyPy 3-64 | TESTS | 4 | 264 | 150630400 | ||
165233035 | filemon | B | July 21, 2022, 7:15 p.m. | OK | Python 3 | TESTS | 4 | 483 | 9216000 | ||
165234582 | carlfre | B | July 21, 2022, 7:39 p.m. | OK | Python 3 | TESTS | 4 | 499 | 11878400 | ||
165240127 | eugalt | B | July 21, 2022, 9:23 p.m. | OK | Python 3 | TESTS | 4 | 607 | 32358400 | ||
165240407 | eugalt | B | July 21, 2022, 9:29 p.m. | OK | Python 3 | TESTS | 4 | 623 | 32358400 | ||
165222842 | shreyas_zagare | B | July 21, 2022, 5:22 p.m. | OK | Python 3 | TESTS | 4 | 639 | 15872000 | ||
165230468 | Collabro | B | July 21, 2022, 6:40 p.m. | OK | Python 3 | TESTS | 4 | 639 | 24473600 | ||
165255587 | MohamedHamed123 | B | July 22, 2022, 2:46 a.m. | OK | Python 3 | TESTS | 4 | 733 | 10342400 | ||
165222783 | sad_song | B | July 21, 2022, 5:21 p.m. | OK | Python 3 | TESTS | 4 | 733 | 16793600 | ||
165252580 | Khwaja_Assam_Arif | B | July 22, 2022, 2:04 a.m. | OK | Python 3 | TESTS | 4 | 1013 | 8089600 | ||
165243659 | Gorrion_ | B | July 21, 2022, 10:46 p.m. | OK | Python 3 | TESTS | 4 | 1014 | 8089600 | ||
165255074 | Niklassanden | B | July 22, 2022, 2:40 a.m. | OK | Rust 2021 | TESTS | 4 | 31 | 5120000 | ||
165231255 | Hyrulia | B | July 21, 2022, 6:50 p.m. | OK | Rust 2021 | TESTS | 4 | 31 | 7475200 |
Back to search problems