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 |
---|---|---|---|---|---|---|
1714 | Codeforces Round 811 (Div. 3) | FINISHED | False | 8100 | 77901863 | Aug. 1, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 30337 ) | A | Everyone Loves to Sleep | PROGRAMMING | implementation math |
B'Vlad, like everyone else, loves to sleep very much. Every day Vlad has to do n things, each at a certain time. For each of these things, he has an alarm clock set, the i -th of them is triggered on h_i hours m_i minutes every day ( 0 <= h_i < 24, 0 <= m_i < 60 ). Vlad uses the 24 -hour time format, so after h=12, m=59 comes h=13, m=0 and after h=23, m=59 comes h=0, m=0 . This time Vlad went to bed at H hours M minutes ( 0 <= H < 24, 0 <= M < 60 ) and asks you to answer: how much he will be able to sleep until the next alarm clock. If any alarm clock rings at the time when he went to bed, then he will sleep for a period of time of length 0 . The first line of input data contains an integer t ( 1 <= t <= 100 ) -- the number of test cases in the test. The first line of the case contains three integers n , H and M ( 1 <= n <= 10, 0 <= H < 24, 0 <= M < 60 ) -- the number of alarms and the time Vlad went to bed. The following n lines contain two numbers each h_i and m_i ( 0 <= h_i < 24, 0 <= m_i < 60 ) -- the time of the i alarm. It is acceptable that two or more alarms will trigger at the same time. Numbers describing time do not contain leading zeros. Output t lines, each containing the answer to the corresponding test case. As an answer, output two numbers -- the number of hours and minutes that Vlad will sleep, respectively. If any alarm clock rings at the time when he went to bed, the answer will be 0 0. '... |
Codeforces Round #811 (Div. 3) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
166628959 | bluemegane | A | Aug. 1, 2022, 10:10 p.m. | OK | C# 8 | TESTS | 6 | 77 | 204800 | ||
166603537 | SolDha2003 | A | Aug. 1, 2022, 5:08 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
166609258 | Serioton_codes | A | Aug. 1, 2022, 5:49 p.m. | OK | GNU C11 | TESTS | 4 | 15 | 0 | ||
166609292 | TusharPathak | A | Aug. 1, 2022, 5:49 p.m. | OK | GNU C11 | TESTS | 4 | 15 | 0 | ||
166610208 | nabilsnigdho | A | Aug. 1, 2022, 5:57 p.m. | OK | GNU C11 | TESTS | 4 | 15 | 0 | ||
166630744 | LeonGymretzka | A | Aug. 1, 2022, 10:56 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | ||
166646053 | shayonop | A | Aug. 2, 2022, 3:51 a.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | ||
166620369 | _Paradox_ | A | Aug. 1, 2022, 7:42 p.m. | OK | GNU C11 | TESTS | 4 | 15 | 0 | ||
166624036 | yarus_rafi | A | Aug. 1, 2022, 8:33 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | ||
166628492 | vizi | A | Aug. 1, 2022, 9:59 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 204800 | ||
166628564 | vizi | A | Aug. 1, 2022, 10:01 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 204800 | ||
166654625 | prabalsahu111 | A | Aug. 2, 2022, 5:59 a.m. | OK | GNU C++14 | TESTS | 6 | 0 | 0 | ||
166654465 | varshatumburu | A | Aug. 2, 2022, 5:58 a.m. | OK | GNU C++14 | TESTS | 6 | 0 | 0 | ||
166653876 | luogu_bot4 | A | Aug. 2, 2022, 5:51 a.m. | OK | GNU C++14 | TESTS | 6 | 0 | 0 | ||
166653809 | luogu_bot5 | A | Aug. 2, 2022, 5:50 a.m. | OK | GNU C++14 | TESTS | 6 | 0 | 0 | ||
166653699 | luogu_bot2 | A | Aug. 2, 2022, 5:49 a.m. | OK | GNU C++14 | TESTS | 6 | 0 | 0 | ||
166653643 | luogu_bot1 | A | Aug. 2, 2022, 5:48 a.m. | OK | GNU C++14 | TESTS | 6 | 0 | 0 | ||
166651685 | _NICkk | A | Aug. 2, 2022, 5:19 a.m. | OK | GNU C++14 | TESTS | 6 | 0 | 0 | ||
166650611 | rks.dream.success | A | Aug. 2, 2022, 5:05 a.m. | OK | GNU C++14 | TESTS | 6 | 0 | 0 | ||
166650247 | trust.the.process | A | Aug. 2, 2022, 4:59 a.m. | OK | GNU C++14 | TESTS | 6 | 0 | 0 | ||
166650244 | peterpi23 | A | Aug. 2, 2022, 4:59 a.m. | OK | GNU C++14 | TESTS | 6 | 0 | 0 | ||
166653857 | fengxingzhui | A | Aug. 2, 2022, 5:51 a.m. | OK | GNU C++17 | TESTS | 6 | 0 | 0 | ||
166654077 | ami_2025 | A | Aug. 2, 2022, 5:53 a.m. | OK | GNU C++17 | TESTS | 6 | 0 | 0 | ||
166654115 | sourabhnchandel | A | Aug. 2, 2022, 5:53 a.m. | OK | GNU C++17 | TESTS | 6 | 0 | 0 | ||
166654270 | Newbie-Lin | A | Aug. 2, 2022, 5:55 a.m. | OK | GNU C++17 | TESTS | 6 | 0 | 0 | ||
166654361 | code.in.red | A | Aug. 2, 2022, 5:56 a.m. | OK | GNU C++17 | TESTS | 6 | 0 | 0 | ||
166654456 | Ashish_9810 | A | Aug. 2, 2022, 5:58 a.m. | OK | GNU C++17 | TESTS | 6 | 0 | 0 | ||
166654459 | nishant_bansal | A | Aug. 2, 2022, 5:58 a.m. | OK | GNU C++17 | TESTS | 6 | 0 | 0 | ||
166654629 | HIU_Saury | A | Aug. 2, 2022, 6 a.m. | OK | GNU C++17 | TESTS | 6 | 0 | 0 | ||
166654630 | xor_09 | A | Aug. 2, 2022, 6 a.m. | OK | GNU C++17 | TESTS | 6 | 0 | 0 | ||
166654764 | asliddin2003 | A | Aug. 2, 2022, 6:01 a.m. | OK | GNU C++17 | TESTS | 6 | 0 | 0 | ||
166652645 | Yagnik_21bce321 | A | Aug. 2, 2022, 5:33 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | ||
166651777 | pakhandi98 | A | Aug. 2, 2022, 5:21 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | ||
166650448 | Physics212303 | A | Aug. 2, 2022, 5:03 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | ||
166650075 | chotaneem | A | Aug. 2, 2022, 4:57 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | ||
166649944 | rolling_hash | A | Aug. 2, 2022, 4:55 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | ||
166649759 | funchoza | A | Aug. 2, 2022, 4:52 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | ||
166649125 | roshan2412 | A | Aug. 2, 2022, 4:42 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | ||
166648425 | Sultan_03 | A | Aug. 2, 2022, 4:31 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | ||
166654373 | yuzian | A | Aug. 2, 2022, 5:56 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | ||
166646708 | TrendBattles | A | Aug. 2, 2022, 4:02 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | ||
166651183 | bkifhr7 | A | Aug. 2, 2022, 5:12 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
166654339 | wanger22 | A | Aug. 2, 2022, 5:56 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
166654203 | aps_20 | A | Aug. 2, 2022, 5:54 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
166654011 | Erfan_Yousefabadi | A | Aug. 2, 2022, 5:52 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
166653713 | Ahmed-yaser | A | Aug. 2, 2022, 5:49 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
166653374 | srejanbera | A | Aug. 2, 2022, 5:44 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
166652802 | Teo_Murphy | A | Aug. 2, 2022, 5:35 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
166652746 | luyue0708 | A | Aug. 2, 2022, 5:35 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
166651638 | SatyamSinghaniya | A | Aug. 2, 2022, 5:19 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
166651111 | nifeshe | A | Aug. 2, 2022, 5:11 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
166620214 | fredrsf | A | Aug. 1, 2022, 7:41 p.m. | OK | Go | TESTS | 4 | 15 | 102400 | ||
166623379 | KomAlex | A | Aug. 1, 2022, 8:24 p.m. | OK | Go | TESTS | 6 | 31 | 102400 | ||
166651253 | Yash9890 | A | Aug. 2, 2022, 5:13 a.m. | OK | Java 11 | TESTS | 6 | 155 | 0 | ||
166610898 | Saurabh-Sharma | A | Aug. 1, 2022, 6:03 p.m. | OK | Java 11 | TESTS | 4 | 156 | 0 | ||
166654487 | Edge_Tree | A | Aug. 2, 2022, 5:58 a.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | ||
166609063 | KarMa_ | A | Aug. 1, 2022, 5:47 p.m. | OK | Java 11 | TESTS | 4 | 171 | 0 | ||
166602865 | Kabirrrr19 | A | Aug. 1, 2022, 5:04 p.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | ||
166615615 | deepaksach | A | Aug. 1, 2022, 6:48 p.m. | OK | Java 11 | TESTS | 4 | 186 | 0 | ||
166651523 | sarveshgr2 | A | Aug. 2, 2022, 5:17 a.m. | OK | Java 11 | TESTS | 6 | 186 | 0 | ||
166648685 | tanish_1131 | A | Aug. 2, 2022, 4:35 a.m. | OK | Java 11 | TESTS | 6 | 186 | 0 | ||
166634271 | profchi | A | Aug. 2, 2022, 12:35 a.m. | OK | Java 11 | TESTS | 6 | 186 | 0 | ||
166623589 | Sikander_2000 | A | Aug. 1, 2022, 8:27 p.m. | OK | Java 11 | TESTS | 6 | 186 | 0 | ||
166620377 | soumit915 | A | Aug. 1, 2022, 7:42 p.m. | OK | Java 17 | TESTS | 4 | 171 | 409600 | ||
166622717 | dxx | A | Aug. 1, 2022, 8:15 p.m. | OK | Java 17 | TESTS | 6 | 202 | 512000 | ||
166614706 | eggag32 | A | Aug. 1, 2022, 6:38 p.m. | OK | Java 17 | TESTS | 4 | 217 | 307200 | ||
166600600 | regalwolf | A | Aug. 1, 2022, 4:54 p.m. | OK | Java 17 | TESTS | 3 | 218 | 0 | ||
166604201 | vasanthgk02 | A | Aug. 1, 2022, 5:12 p.m. | OK | Java 17 | TESTS | 3 | 233 | 0 | ||
166649832 | arpan_ravinuthala | A | Aug. 2, 2022, 4:53 a.m. | OK | Java 17 | TESTS | 6 | 249 | 716800 | ||
166612843 | MSN07 | A | Aug. 1, 2022, 6:21 p.m. | OK | Java 17 | TESTS | 4 | 265 | 1024000 | ||
166606633 | 07_02 | A | Aug. 1, 2022, 5:28 p.m. | OK | Java 17 | TESTS | 4 | 311 | 204800 | ||
166608533 | Kaldaruly | A | Aug. 1, 2022, 5:43 p.m. | OK | Java 8 | TESTS | 4 | 77 | 0 | ||
166604963 | Deependra_coder | A | Aug. 1, 2022, 5:16 p.m. | OK | Java 8 | TESTS | 4 | 77 | 0 | ||
166602958 | yashpandey73 | A | Aug. 1, 2022, 5:05 p.m. | OK | Java 8 | TESTS | 3 | 77 | 0 | ||
166601435 | rish1896 | A | Aug. 1, 2022, 4:58 p.m. | OK | Java 8 | TESTS | 3 | 77 | 0 | ||
166600540 | BhargavModha | A | Aug. 1, 2022, 4:54 p.m. | OK | Java 8 | TESTS | 3 | 78 | 0 | ||
166652080 | OmarKenawi | A | Aug. 2, 2022, 5:25 a.m. | OK | Java 8 | TESTS | 6 | 93 | 0 | ||
166648327 | pavandandu | A | Aug. 2, 2022, 4:29 a.m. | OK | Java 8 | TESTS | 6 | 93 | 0 | ||
166630872 | Rayhan_ChowdhuRy | A | Aug. 1, 2022, 10:58 p.m. | OK | Java 8 | TESTS | 6 | 93 | 0 | ||
166619792 | ahmedtawfik | A | Aug. 1, 2022, 7:36 p.m. | OK | Java 8 | TESTS | 4 | 93 | 0 | ||
166616614 | rnss | A | Aug. 1, 2022, 6:59 p.m. | OK | Java 8 | TESTS | 4 | 93 | 0 | ||
166633619 | vv005 | A | Aug. 2, 2022, 12:20 a.m. | OK | Kotlin 1.4 | TESTS | 6 | 78 | 0 | ||
166638794 | rttyuii | A | Aug. 2, 2022, 1:58 a.m. | OK | MS C++ 2017 | TESTS | 6 | 0 | 0 | ||
166624366 | adesh123 | A | Aug. 1, 2022, 8:39 p.m. | OK | MS C++ 2017 | TESTS | 6 | 0 | 0 | ||
166612289 | Charvi_17 | A | Aug. 1, 2022, 6:15 p.m. | OK | MS C++ 2017 | TESTS | 4 | 0 | 0 | ||
166612186 | Crimson_Quasar | A | Aug. 1, 2022, 6:15 p.m. | OK | MS C++ 2017 | TESTS | 4 | 0 | 0 | ||
166651072 | Fish_L | A | Aug. 2, 2022, 5:11 a.m. | OK | MS C++ 2017 | TESTS | 6 | 15 | 0 | ||
166643154 | wawawawa1 | A | Aug. 2, 2022, 3:05 a.m. | OK | MS C++ 2017 | TESTS | 6 | 15 | 0 | ||
166642620 | kas181 | A | Aug. 2, 2022, 2:56 a.m. | OK | MS C++ 2017 | TESTS | 6 | 15 | 0 | ||
166641946 | nan_shan_nan | A | Aug. 2, 2022, 2:46 a.m. | OK | MS C++ 2017 | TESTS | 6 | 15 | 0 | ||
166640732 | pursuita | A | Aug. 2, 2022, 2:28 a.m. | OK | MS C++ 2017 | TESTS | 6 | 15 | 0 | ||
166613835 | Eng__Ahmed__Mohamed | A | Aug. 1, 2022, 6:29 p.m. | OK | MS C++ 2017 | TESTS | 4 | 15 | 0 | ||
166652296 | geek_nero | A | Aug. 2, 2022, 5:28 a.m. | OK | PyPy 3 | TESTS | 6 | 77 | 0 | ||
166643658 | LarryNY | A | Aug. 2, 2022, 3:13 a.m. | OK | PyPy 3 | TESTS | 6 | 77 | 0 | ||
166652185 | abineth | A | Aug. 2, 2022, 5:27 a.m. | OK | PyPy 3 | TESTS | 6 | 77 | 1536000 | ||
166603882 | kuanc | A | Aug. 1, 2022, 5:10 p.m. | OK | PyPy 3 | TESTS | 3 | 77 | 1740800 | ||
166621327 | hxu10 | A | Aug. 1, 2022, 7:55 p.m. | OK | PyPy 3 | TESTS | 4 | 93 | 0 | ||
166618853 | kd_angie | A | Aug. 1, 2022, 7:25 p.m. | OK | PyPy 3 | TESTS | 4 | 93 | 1228800 | ||
166609245 | rou-nin | A | Aug. 1, 2022, 5:49 p.m. | OK | PyPy 3 | TESTS | 4 | 93 | 1228800 | ||
166602706 | Bishwanath | A | Aug. 1, 2022, 5:04 p.m. | OK | PyPy 3 | TESTS | 3 | 93 | 1331200 | ||
166625878 | SIGCHLD | A | Aug. 1, 2022, 9:04 p.m. | OK | PyPy 3 | TESTS | 6 | 108 | 1843200 | ||
166650340 | Srilekha3 | A | Aug. 2, 2022, 5:01 a.m. | OK | PyPy 3 | TESTS | 6 | 108 | 2048000 | ||
166647715 | farrellbyu | A | Aug. 2, 2022, 4:19 a.m. | OK | PyPy 3-64 | TESTS | 6 | 46 | 0 | ||
166622903 | dunkin_shepherd | A | Aug. 1, 2022, 8:18 p.m. | OK | PyPy 3-64 | TESTS | 6 | 46 | 0 | ||
166609454 | sphoortimpatil | A | Aug. 1, 2022, 5:51 p.m. | OK | PyPy 3-64 | TESTS | 4 | 46 | 0 | ||
166601994 | karan20439 | A | Aug. 1, 2022, 5 p.m. | OK | PyPy 3-64 | TESTS | 3 | 61 | 1536000 | ||
166606599 | 0x15FBEF3 | A | Aug. 1, 2022, 5:27 p.m. | OK | PyPy 3-64 | TESTS | 4 | 61 | 1740800 | ||
166645773 | mrabhishek1379 | A | Aug. 2, 2022, 3:46 a.m. | OK | PyPy 3-64 | TESTS | 6 | 62 | 0 | ||
166627055 | esllam | A | Aug. 1, 2022, 9:28 p.m. | OK | PyPy 3-64 | TESTS | 6 | 62 | 0 | ||
166627517 | magnuseifr | A | Aug. 1, 2022, 9:37 p.m. | OK | PyPy 3-64 | TESTS | 6 | 62 | 1536000 | ||
166601052 | utrpatzer | A | Aug. 1, 2022, 4:56 p.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 1536000 | ||
166651457 | Sahilrk07 | A | Aug. 2, 2022, 5:16 a.m. | OK | PyPy 3-64 | TESTS | 6 | 62 | 1740800 | ||
166598359 | _Code_till_death_ | A | Aug. 1, 2022, 4:48 p.m. | OK | Python 3 | TESTS | 3 | 15 | 0 | ||
166611865 | SilverGodly | A | Aug. 1, 2022, 6:12 p.m. | OK | Python 3 | TESTS | 4 | 30 | 0 | ||
166611819 | Nabeel_Ismaeel | A | Aug. 1, 2022, 6:11 p.m. | OK | Python 3 | TESTS | 4 | 30 | 0 | ||
166608748 | asdevdinesh786 | A | Aug. 1, 2022, 5:45 p.m. | OK | Python 3 | TESTS | 4 | 30 | 0 | ||
166606560 | nicolasrodriguezlucena | A | Aug. 1, 2022, 5:27 p.m. | OK | Python 3 | TESTS | 4 | 30 | 0 | ||
166650654 | Loveforever | A | Aug. 2, 2022, 5:05 a.m. | OK | Python 3 | TESTS | 6 | 31 | 0 | ||
166649163 | n5rut0 | A | Aug. 2, 2022, 4:43 a.m. | OK | Python 3 | TESTS | 6 | 31 | 0 | ||
166648787 | WJ.L | A | Aug. 2, 2022, 4:37 a.m. | OK | Python 3 | TESTS | 6 | 31 | 0 | ||
166646766 | sravansainath7980 | A | Aug. 2, 2022, 4:03 a.m. | OK | Python 3 | TESTS | 6 | 31 | 0 | ||
166640486 | Shiyinq | A | Aug. 2, 2022, 2:24 a.m. | OK | Python 3 | TESTS | 6 | 31 | 0 | ||
166600204 | kobae964 | A | Aug. 1, 2022, 4:53 p.m. | OK | Rust 2021 | TESTS | 3 | 0 | 0 | ||
166643249 | cycleke | A | Aug. 2, 2022, 3:07 a.m. | OK | Rust 2021 | TESTS | 6 | 15 | 0 | ||
166600212 | jakobrs | A | Aug. 1, 2022, 4:53 p.m. | OK | Rust 2021 | TESTS | 3 | 15 | 0 |
Back to search problems