Codeforces Round 620 (Div. 2)

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
1304 Codeforces Round 620 (Div. 2) FINISHED False 7200 155580911 Feb. 15, 2020, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16603 ) C Air Conditioner PROGRAMMING dp greedy implementation sortings two pointers 1500

B"Gildong owns a bulgogi restaurant. The restaurant has a lot of customers, so many of them like to make a reservation before visiting it. Gildong tries so hard to satisfy the customers that he even memorized all customers' preferred temperature ranges! Looking through the reservation list, he wants to satisfy all customers by controlling the temperature of the restaurant. The restaurant has an air conditioner that has 3 states: off, heating, and cooling. When it's off, the restaurant's temperature remains the same. When it's heating, the temperature increases by 1 in one minute. Lastly, when it's cooling, the temperature decreases by 1 in one minute. Gildong can change the state as many times as he wants, at any integer minutes. The air conditioner is off initially. Each customer is characterized by three values: t_i -- the time (in minutes) when the i -th customer visits the restaurant, l_i -- the lower bound of their preferred temperature range, and h_i -- the upper bound of their preferred temperature range. A customer is satisfied if the temperature is within the preferred range at the instant they visit the restaurant. Formally, the i -th customer is satisfied if and only if the temperature is between l_i and h_i (inclusive) in the t_i -th minute. Given the initial temperature, the list of reserved customers' visit times and their preferred temperature ranges, you're going to help him find if it's possible to satisfy all customers. Each test contains one or more test cases. The first line contains the number of test cases q ( 1 <= q <= 500 ). Description of the test cases follows. The first line of each test case contains two integers n and m ( 1 <= n <= 100 , -10^9 <= m <= 10^9 ), where n is the number of reserved customers and m is the initial temperature of the restaurant. Next, n lines follow. The i -th line of them contains three integers $$"...

Tutorials

Codeforces Round #620 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
71602293 JWoong149 C Feb. 22, 2020, 9:37 a.m. OK Clang++17 Diagnostics TESTS 43 795 7372800 1500
71143614 daut-dlang C Feb. 15, 2020, 1:46 p.m. OK D TESTS 43 77 0 1500
71557447 vjudge2 C Feb. 21, 2020, 2:53 p.m. OK FPC TESTS 43 61 0 1500
71557445 vjudge3 C Feb. 21, 2020, 2:53 p.m. OK FPC TESTS 43 62 204800 1500
71544862 raiuse C Feb. 21, 2020, 10:59 a.m. OK GNU C11 TESTS 43 46 0 1500
71158405 answer_is_42 C Feb. 15, 2020, 2:36 p.m. OK GNU C11 TESTS 43 46 0 1500
71152131 1_l C Feb. 15, 2020, 2:13 p.m. OK GNU C11 TESTS 43 46 0 1500
71201170 frank1586 C Feb. 16, 2020, 6:24 a.m. OK GNU C11 TESTS 43 46 0 1500
71166178 sher_lock C Feb. 15, 2020, 3:03 p.m. OK GNU C11 TESTS 43 46 0 1500
71162744 pdsu--mazh C Feb. 15, 2020, 2:52 p.m. OK GNU C11 TESTS 43 46 0 1500
71416369 gigatom C Feb. 19, 2020, 5:47 a.m. OK GNU C11 TESTS 43 46 0 1500
71163810 pandeyaman5570 C Feb. 15, 2020, 2:56 p.m. OK GNU C11 TESTS 43 61 0 1500
71222409 JuliusCaesar C Feb. 16, 2020, 12:40 p.m. OK GNU C11 TESTS 43 62 0 1500
71149415 YOK C Feb. 15, 2020, 2:03 p.m. OK GNU C11 TESTS 43 62 0 1500
71385229 chenshi028 C Feb. 18, 2020, 2:41 p.m. OK GNU C++11 TESTS 43 31 0 1500
71355927 pisuttun C Feb. 18, 2020, 5:58 a.m. OK GNU C++11 TESTS 43 31 0 1500
71287718 Flash_plus C Feb. 17, 2020, 3:38 p.m. OK GNU C++11 TESTS 43 31 0 1500
71268978 gyh20 C Feb. 17, 2020, 9:41 a.m. OK GNU C++11 TESTS 43 31 0 1500
71261942 plwz C Feb. 17, 2020, 7:06 a.m. OK GNU C++11 TESTS 43 31 0 1500
71641433 BiBaoLong C Feb. 23, 2020, 3:51 a.m. OK GNU C++11 TESTS 43 31 0 1500
71640733 guava_r C Feb. 23, 2020, 3:17 a.m. OK GNU C++11 TESTS 43 31 0 1500
71597749 vjudge5 C Feb. 22, 2020, 8:25 a.m. OK GNU C++11 TESTS 43 31 0 1500
71591905 LJb00131 C Feb. 22, 2020, 6:44 a.m. OK GNU C++11 TESTS 43 31 0 1500
71482142 AfLZK C Feb. 20, 2020, 8:49 a.m. OK GNU C++11 TESTS 43 31 0 1500
71437663 QAQAutoMaton C Feb. 19, 2020, 12:54 p.m. OK GNU C++14 TESTS 43 30 4198400 1500
71604214 L.I. C Feb. 22, 2020, 10:10 a.m. OK GNU C++14 TESTS 43 46 0 1500
71613280 21August C Feb. 22, 2020, 1:11 p.m. OK GNU C++14 TESTS 43 46 0 1500
71624817 awaracoder C Feb. 22, 2020, 5:07 p.m. OK GNU C++14 TESTS 43 46 0 1500
71587485 Everule C Feb. 22, 2020, 5:12 a.m. OK GNU C++14 TESTS 43 46 0 1500
71526244 vjudge4 C Feb. 21, 2020, 4:07 a.m. OK GNU C++14 TESTS 43 46 0 1500
71513280 alazycoder C Feb. 20, 2020, 6:55 p.m. OK GNU C++14 TESTS 43 46 0 1500
71507913 aditya1k2 C Feb. 20, 2020, 5 p.m. OK GNU C++14 TESTS 43 46 0 1500
71593801 RadicalElements C Feb. 22, 2020, 7:17 a.m. OK GNU C++14 TESTS 43 46 0 1500
71471026 nisnt_2411 C Feb. 20, 2020, 3:54 a.m. OK GNU C++14 TESTS 43 46 0 1500
71554003 hunter19491001 C Feb. 21, 2020, 1:52 p.m. OK GNU C++17 TESTS 43 46 0 1500
71615843 BernardoSulzbach C Feb. 22, 2020, 2:01 p.m. OK GNU C++17 TESTS 43 46 0 1500
71607063 bitetheDDDDt C Feb. 22, 2020, 11:05 a.m. OK GNU C++17 TESTS 43 46 0 1500
71593716 vjudge1 C Feb. 22, 2020, 7:15 a.m. OK GNU C++17 TESTS 43 46 0 1500
71560264 pierre5340 C Feb. 21, 2020, 3:40 p.m. OK GNU C++17 TESTS 43 46 0 1500
71553714 t3018210153 C Feb. 21, 2020, 1:47 p.m. OK GNU C++17 TESTS 43 46 0 1500
71531334 stArliGht C Feb. 21, 2020, 6:27 a.m. OK GNU C++17 TESTS 43 46 0 1500
71525615 baronLJ C Feb. 21, 2020, 3:42 a.m. OK GNU C++17 TESTS 43 46 0 1500
71508239 nivert C Feb. 20, 2020, 5:07 p.m. OK GNU C++17 TESTS 43 46 0 1500
71487021 Hackerman C Feb. 20, 2020, 10:29 a.m. OK GNU C++17 TESTS 43 46 0 1500
71152086 naipia C Feb. 15, 2020, 2:12 p.m. OK Go TESTS 43 62 0 1500
71223400 snow_bear_328 C Feb. 16, 2020, 1 p.m. OK Go TESTS 43 78 4505600 1500
71229868 work_harder C Feb. 16, 2020, 2:51 p.m. OK Go TESTS 43 124 0 1500
71173726 synapse C Feb. 15, 2020, 5:25 p.m. OK Go TESTS 43 124 4505600 1500
71142186 synapse C Feb. 15, 2020, 1:42 p.m. OK Go TESTS 43 124 4505600 1500
71188335 sarthak.0702 C Feb. 15, 2020, 11:13 p.m. OK Java 11 TESTS 43 186 0 1500
71333205 Anonymous C Feb. 17, 2020, 6:25 p.m. OK Java 11 TESTS 43 187 0 1500
71617854 Hexomiter C Feb. 22, 2020, 2:39 p.m. OK Java 11 TESTS 43 202 0 1500
71151261 codebhavan C Feb. 15, 2020, 2:10 p.m. OK Java 11 TESTS 43 202 0 1500
71610643 yamen.haddad C Feb. 22, 2020, 12:16 p.m. OK Java 11 TESTS 43 217 0 1500
71587224 pennyIsLove C Feb. 22, 2020, 5:05 a.m. OK Java 11 TESTS 43 217 0 1500
71240566 shane_kt2 C Feb. 16, 2020, 6:30 p.m. OK Java 11 TESTS 43 217 0 1500
71145684 alankritanand001 C Feb. 15, 2020, 1:51 p.m. OK Java 11 TESTS 43 217 0 1500
71440528 Azakarka C Feb. 19, 2020, 1:40 p.m. OK Java 11 TESTS 43 218 0 1500
71395993 Kimo_Fathy C Feb. 18, 2020, 5:51 p.m. OK Java 11 TESTS 43 218 0 1500
71255748 bluesky111 C Feb. 17, 2020, 4:25 a.m. OK Java 8 TESTS 43 124 0 1500
71215074 johnny16 C Feb. 16, 2020, 10:18 a.m. OK Java 8 TESTS 43 124 0 1500
71178534 rahsutamrev C Feb. 15, 2020, 6:44 p.m. OK Java 8 TESTS 43 124 0 1500
71172491 conquerorArpit C Feb. 15, 2020, 5:09 p.m. OK Java 8 TESTS 43 124 0 1500
71161932 hushojin C Feb. 15, 2020, 2:49 p.m. OK Java 8 TESTS 43 124 0 1500
71155003 Abhinav_Mani C Feb. 15, 2020, 2:23 p.m. OK Java 8 TESTS 43 124 0 1500
71149097 MubtasimShahriar C Feb. 15, 2020, 2:02 p.m. OK Java 8 TESTS 43 124 0 1500
71147983 KharYusuf C Feb. 15, 2020, 1:58 p.m. OK Java 8 TESTS 43 124 0 1500
71566725 OmarRadwan C Feb. 21, 2020, 5:34 p.m. OK Java 8 TESTS 43 139 0 1500
71509081 less_than_gray C Feb. 20, 2020, 5:25 p.m. OK Java 8 TESTS 43 139 0 1500
71164854 formalist C Feb. 15, 2020, 3 p.m. OK Kotlin TESTS 43 155 0 1500
71171501 icebound C Feb. 15, 2020, 4:58 p.m. OK Kotlin TESTS 43 170 0 1500
71145677 SlavaG C Feb. 15, 2020, 1:51 p.m. OK Kotlin TESTS 43 171 0 1500
71203693 KanhuKeNanu C Feb. 16, 2020, 7:09 a.m. OK Kotlin TESTS 43 296 307200 1500
71154503 Denzed C Feb. 15, 2020, 2:21 p.m. OK Kotlin TESTS 43 311 204800 1500
71143786 Tlatoani C Feb. 15, 2020, 1:46 p.m. OK Kotlin TESTS 43 311 1126400 1500
71149692 IamLev C Feb. 15, 2020, 2:04 p.m. OK Kotlin TESTS 43 327 307200 1500
71145220 Long-shot C Feb. 15, 2020, 1:50 p.m. OK Kotlin TESTS 43 327 307200 1500
71147262 seirion C Feb. 15, 2020, 1:56 p.m. OK Kotlin TESTS 43 358 1228800 1500
71143710 wbars C Feb. 15, 2020, 1:46 p.m. OK Kotlin TESTS 43 373 0 1500
71213114 htspur C Feb. 16, 2020, 9:43 a.m. OK Mono C# TESTS 43 62 1433600 1500
71227621 T-D-K C Feb. 16, 2020, 2:11 p.m. OK Mono C# TESTS 43 77 3072000 1500
71158517 Anastasiya_Andreevna C Feb. 15, 2020, 2:36 p.m. OK Mono C# TESTS 43 93 3072000 1500
71188691 SpinDOS C Feb. 15, 2020, 11:32 p.m. OK Mono C# TESTS 43 108 3072000 1500
71154214 artworks C Feb. 15, 2020, 2:20 p.m. OK Mono C# TESTS 43 108 7884800 1500
71335621 m1_k3 C Feb. 17, 2020, 7:06 p.m. OK Mono C# TESTS 43 109 512000 1500
71151603 korntest C Feb. 15, 2020, 2:11 p.m. OK Mono C# TESTS 43 124 3072000 1500
71159111 coderbd C Feb. 15, 2020, 2:39 p.m. OK Mono C# TESTS 43 124 3072000 1500
71150546 sergmel C Feb. 15, 2020, 2:07 p.m. OK Mono C# TESTS 43 124 3174400 1500
71147245 hibatibati C Feb. 15, 2020, 1:56 p.m. OK Mono C# TESTS 43 124 6758400 1500
71202754 2xiaoapei C Feb. 16, 2020, 6:53 a.m. OK MS C++ TESTS 43 46 0 1500
71158647 bj126627885 C Feb. 15, 2020, 2:37 p.m. OK MS C++ TESTS 43 46 0 1500
71155025 Goldexperienrce C Feb. 15, 2020, 2:23 p.m. OK MS C++ TESTS 43 46 0 1500
71614029 vjudge4 C Feb. 22, 2020, 1:26 p.m. OK MS C++ TESTS 43 46 0 1500
71603572 vjudge5 C Feb. 22, 2020, 9:58 a.m. OK MS C++ TESTS 43 46 0 1500
71221967 vjudge3 C Feb. 16, 2020, 12:32 p.m. OK MS C++ TESTS 43 46 0 1500
71255707 accwxhn C Feb. 17, 2020, 4:24 a.m. OK MS C++ TESTS 43 46 0 1500
71596772 vjudge4 C Feb. 22, 2020, 8:08 a.m. OK MS C++ TESTS 43 46 0 1500
71145855 songhaoran C Feb. 15, 2020, 1:52 p.m. OK MS C++ TESTS 43 93 0 1500
71221612 vjudge1 C Feb. 16, 2020, 12:26 p.m. OK MS C++ TESTS 43 124 0 1500
71145658 oceanlin C Feb. 15, 2020, 1:51 p.m. OK MS C++ 2017 TESTS 43 61 0 1500
71160592 Veeee9 C Feb. 15, 2020, 2:44 p.m. OK MS C++ 2017 TESTS 43 61 0 1500
71212708 hnust_jinyan C Feb. 16, 2020, 9:36 a.m. OK MS C++ 2017 TESTS 43 61 0 1500
71223440 vjudge4 C Feb. 16, 2020, 1 p.m. OK MS C++ 2017 TESTS 43 62 0 1500
71597915 vjudge3 C Feb. 22, 2020, 8:27 a.m. OK MS C++ 2017 TESTS 43 62 0 1500
71593029 vjudge2 C Feb. 22, 2020, 7:04 a.m. OK MS C++ 2017 TESTS 43 62 0 1500
71364977 Huangzzzzz C Feb. 18, 2020, 8:58 a.m. OK MS C++ 2017 TESTS 43 62 0 1500
71221621 vjudge4 C Feb. 16, 2020, 12:26 p.m. OK MS C++ 2017 TESTS 43 62 0 1500
71158115 pichulia C Feb. 15, 2020, 2:35 p.m. OK MS C++ 2017 TESTS 43 62 0 1500
71152385 hnust_zhouzisheng C Feb. 15, 2020, 2:13 p.m. OK MS C++ 2017 TESTS 43 62 0 1500
71637763 sithole C Feb. 22, 2020, 11:57 p.m. OK Node.js TESTS 43 218 12390400 1500
71149582 shivam1420 C Feb. 15, 2020, 2:04 p.m. OK Node.js TESTS 43 265 23449600 1500
71438453 raj1307 C Feb. 19, 2020, 1:07 p.m. OK PyPy 2 TESTS 43 218 7168000 1500
71146935 Mukundan314 C Feb. 15, 2020, 1:55 p.m. OK PyPy 2 TESTS 43 233 7475200 1500
71150247 bazzyadb C Feb. 15, 2020, 2:06 p.m. OK PyPy 2 TESTS 43 326 3891200 1500
71154834 iamprayush C Feb. 15, 2020, 2:23 p.m. OK PyPy 2 TESTS 43 327 15155200 1500
71152067 rkstalker C Feb. 15, 2020, 2:12 p.m. OK PyPy 2 TESTS 43 482 5017600 1500
71157824 yamatoumi C Feb. 15, 2020, 2:34 p.m. OK PyPy 2 TESTS 43 498 4403200 1500
71149845 slitvinov C Feb. 15, 2020, 2:05 p.m. OK PyPy 2 TESTS 43 514 4300800 1500
71159411 tachyon777 C Feb. 15, 2020, 2:40 p.m. OK PyPy 3 TESTS 43 217 3174400 1500
71178852 siyy C Feb. 15, 2020, 6:50 p.m. OK PyPy 3 TESTS 43 234 8396800 1500
71148431 marcus.aure C Feb. 15, 2020, 2 p.m. OK PyPy 3 TESTS 43 280 5017600 1500
71140986 satyamcse C Feb. 15, 2020, 1:39 p.m. OK PyPy 3 TESTS 43 280 10137600 1500
71191223 roaris C Feb. 16, 2020, 1:52 a.m. OK PyPy 3 TESTS 43 295 6246400 1500
71173054 cho12 C Feb. 15, 2020, 5:16 p.m. OK PyPy 3 TESTS 43 295 6451200 1500
71148641 tamato C Feb. 15, 2020, 2:01 p.m. OK PyPy 3 TESTS 43 296 6246400 1500
71388952 xiema C Feb. 18, 2020, 3:44 p.m. OK PyPy 3 TESTS 43 296 6348800 1500
71283674 TimurABS C Feb. 17, 2020, 2:30 p.m. OK PyPy 3 TESTS 43 296 6451200 1500
71251331 happynxy C Feb. 17, 2020, 1:16 a.m. OK PyPy 3 TESTS 43 296 7987200 1500
71286916 soumyasarkar1998 C Feb. 17, 2020, 3:31 p.m. OK Python 2 TESTS 43 296 0 1500
71516315 mgshuter62 C Feb. 20, 2020, 8:19 p.m. OK Python 2 TESTS 43 311 0 1500
71265546 SoSooding C Feb. 17, 2020, 8:27 a.m. OK Python 2 TESTS 43 311 102400 1500
71200070 devesh1102 C Feb. 16, 2020, 6:04 a.m. OK Python 3 TESTS 43 218 512000 1500
71230711 xodeChemist C Feb. 16, 2020, 3:07 p.m. OK Python 3 TESTS 43 233 307200 1500
71158524 mamambo C Feb. 15, 2020, 2:36 p.m. OK Python 3 TESTS 43 233 307200 1500
71156238 burfnerd C Feb. 15, 2020, 2:28 p.m. OK Python 3 TESTS 43 233 307200 1500
71472618 Ueki C Feb. 20, 2020, 4:50 a.m. OK Python 3 TESTS 43 233 512000 1500
71142671 komolakanto C Feb. 15, 2020, 1:43 p.m. OK Python 3 TESTS 43 234 307200 1500
71634253 parthgen.p C Feb. 22, 2020, 9:06 p.m. OK Python 3 TESTS 43 249 307200 1500
71148874 Danish_love C Feb. 15, 2020, 2:02 p.m. OK Python 3 TESTS 43 249 307200 1500
71270195 pragy C Feb. 17, 2020, 10:04 a.m. OK Python 3 TESTS 43 249 512000 1500
71189765 MinecraftFuns C Feb. 16, 2020, 12:38 a.m. OK Python 3 TESTS 43 249 512000 1500
71142172 Jughead C Feb. 15, 2020, 1:42 p.m. OK Ruby TESTS 43 140 18636800 1500
71250096 mversic101 C Feb. 17, 2020, 12:09 a.m. OK Rust TESTS 43 46 0 1500
71155168 akiradeveloper C Feb. 15, 2020, 2:24 p.m. OK Rust TESTS 43 46 1228800 1500
71356789 sansen C Feb. 18, 2020, 6:17 a.m. OK Rust TESTS 43 46 3174400 1500
71188508 clearlycloudy C Feb. 15, 2020, 11:21 p.m. OK Rust TESTS 43 61 5222400 1500
71278864 myomyomyo C Feb. 17, 2020, 1:06 p.m. OK Rust TESTS 43 62 0 1500
71163736 manta1130 C Feb. 15, 2020, 2:56 p.m. OK Rust TESTS 43 77 0 1500
71143093 terraformer C Feb. 15, 2020, 1:44 p.m. OK Rust TESTS 43 108 0 1500
71144579 j31d0 C Feb. 15, 2020, 1:48 p.m. OK Scala TESTS 43 654 0 1500

remove filters

Back to search problems