Codeforces Round 657 (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
1379 Codeforces Round 657 (Div. 2) FINISHED False 7200 136673999 July 19, 2020, 9 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1087 ) D New Passenger Trams PROGRAMMING brute force data structures sortings two pointers 2400

B'There are many freight trains departing from Kirnes planet every day. One day on that planet consists of h hours, and each hour consists of m minutes, where m is an even number. Currently, there are n freight trains, and they depart every day at the same time: i -th train departs at h_i hours and m_i minutes. The government decided to add passenger trams as well: they plan to add a regular tram service with half-hour intervals. It means that the first tram of the day must depart at 0 hours and t minutes, where 0 <= t < {m over 2} , the second tram departs m over 2 minutes after the first one and so on. This schedule allows exactly two passenger trams per hour, which is a great improvement. To allow passengers to board the tram safely, the tram must arrive k minutes before. During the time when passengers are boarding the tram, no freight train can depart from the planet. However, freight trains are allowed to depart at the very moment when the boarding starts, as well as at the moment when the passenger tram departs. Note that, if the first passenger tram departs at 0 hours and t minutes, where t < k , then the freight trains can not depart during the last k - t minutes of the day. Unfortunately, it might not be possible to satisfy the requirements of the government without canceling some of the freight trains. Please help the government find the optimal value of t to minimize the number of canceled freight trains in case all passenger trams depart according to schedule. The first line of input contains four integers n , h , m , k ( 1 <= n <= 100 ,000 , 1 <= h <= 10^9 , 2 <= m <= 10^9 , m is even, 1 <= k <= {m over 2} ) -- the number of freight trains per day, the number of hours and minutes on the planet, and the boarding time for each passenger tram. n lines follow, each contains two integers'...

Tutorials

Codeforces Round #657 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
87318479 Gassa D July 19, 2020, 10:07 a.m. OK D TESTS 27 156 18534400 2400
87333230 lyp_ D July 19, 2020, 10:41 a.m. OK GNU C++11 TESTS 27 31 10137600 2400
87332323 jiangxuancheng D July 19, 2020, 10:39 a.m. OK GNU C++11 TESTS 27 46 5529600 2400
87349559 Sweetlemon D July 19, 2020, 12:16 p.m. OK GNU C++11 TESTS 27 46 6144000 2400
87332287 vjudge6 D July 19, 2020, 10:39 a.m. OK GNU C++11 TESTS 27 46 7577600 2400
87338860 myx12345 D July 19, 2020, 10:53 a.m. OK GNU C++11 TESTS 27 46 39628800 2400
87327645 ServantSaber D July 19, 2020, 10:28 a.m. OK GNU C++11 TESTS 27 62 5529600 2400
87347963 yao11617 D July 19, 2020, 12:01 p.m. OK GNU C++11 TESTS 27 62 5836800 2400
87340335 Samsara_soul D July 19, 2020, 10:56 a.m. OK GNU C++11 TESTS 27 62 6348800 2400
87339201 ws_zzyer D July 19, 2020, 10:54 a.m. OK GNU C++11 TESTS 27 62 7475200 2400
87346639 sunzihao D July 19, 2020, 11:49 a.m. OK GNU C++11 TESTS 27 62 7884800 2400
87324819 Depth_First_Search D July 19, 2020, 10:21 a.m. OK GNU C++14 TESTS 27 62 5632000 2400
87330983 DatVu D July 19, 2020, 10:36 a.m. OK GNU C++14 TESTS 27 93 4915200 2400
87359259 Tanmay414 D July 19, 2020, 1:57 p.m. OK GNU C++14 TESTS 27 93 5222400 2400
87394079 Sundar D July 20, 2020, 2:54 a.m. OK GNU C++14 TESTS 27 93 5324800 2400
87317879 sava-cska D July 19, 2020, 10:06 a.m. OK GNU C++14 TESTS 27 93 5324800 2400
87338121 zzynb D July 19, 2020, 10:51 a.m. OK GNU C++14 TESTS 27 93 5529600 2400
87344834 Kirito D July 19, 2020, 11:37 a.m. OK GNU C++14 TESTS 27 93 6041600 2400
87331040 fpeterfalvi D July 19, 2020, 10:36 a.m. OK GNU C++14 TESTS 27 93 6144000 2400
87400523 varunmaddipati D July 20, 2020, 5:40 a.m. OK GNU C++14 TESTS 27 93 6963200 2400
87399710 varunmaddipati D July 20, 2020, 5:25 a.m. OK GNU C++14 TESTS 27 93 6963200 2400
87354859 tyzc D July 19, 2020, 1:09 p.m. OK GNU C++17 TESTS 27 61 6656000 2400
87329592 liouzhou_101 D July 19, 2020, 10:32 a.m. OK GNU C++17 TESTS 27 62 12185600 2400
87309847 Ronnie007 D July 19, 2020, 9:50 a.m. OK GNU C++17 TESTS 27 77 5324800 2400
87399687 Blogggggg D July 20, 2020, 5:25 a.m. OK GNU C++17 TESTS 27 77 6348800 2400
87399870 Blogggggg D July 20, 2020, 5:28 a.m. OK GNU C++17 TESTS 27 78 6144000 2400
87399596 Blogggggg D July 20, 2020, 5:23 a.m. OK GNU C++17 TESTS 27 78 6144000 2400
87315957 imeimi D July 19, 2020, 10:02 a.m. OK GNU C++17 TESTS 27 78 6144000 2400
87399731 Blogggggg D July 20, 2020, 5:26 a.m. OK GNU C++17 TESTS 27 78 6348800 2400
87329242 yzh1505 D July 19, 2020, 10:31 a.m. OK GNU C++17 TESTS 27 78 19763200 2400
87363138 heyuhhh D July 19, 2020, 2:39 p.m. OK GNU C++17 TESTS 27 92 5734400 2400
87361408 galen_colin D July 19, 2020, 2:21 p.m. OK GNU C++17 (64) TESTS 27 61 33075200 2400
87353487 _oscar_S21 D July 19, 2020, 12:54 p.m. OK GNU C++17 (64) TESTS 27 62 8089600 2400
87396112 neal D July 20, 2020, 3:47 a.m. OK GNU C++17 (64) TESTS 27 77 6758400 2400
87358738 zuhn D July 19, 2020, 1:51 p.m. OK GNU C++17 (64) TESTS 27 77 6860800 2400
87330308 risujiroh D July 19, 2020, 10:34 a.m. OK GNU C++17 (64) TESTS 27 77 6860800 2400
87336715 dum4ss D July 19, 2020, 10:49 a.m. OK GNU C++17 (64) TESTS 27 77 9113600 2400
87370854 haruki_K D July 19, 2020, 4:12 p.m. OK GNU C++17 (64) TESTS 27 77 10752000 2400
87373020 Qwerty1232 D July 19, 2020, 4:46 p.m. OK GNU C++17 (64) TESTS 27 77 11673600 2400
87312974 jiangly D July 19, 2020, 9:56 a.m. OK GNU C++17 (64) TESTS 27 77 12083200 2400
87371184 8-_-8 D July 19, 2020, 4:17 p.m. OK GNU C++17 (64) TESTS 27 77 19660800 2400
87317214 uwi D July 19, 2020, 10:05 a.m. OK Java 11 TESTS 27 280 24985600 2400
87340113 insert_cool_handle D July 19, 2020, 10:56 a.m. OK Java 11 TESTS 27 982 88268800 2400
87388916 AnandOza D July 19, 2020, 11:31 p.m. OK Java 8 TESTS 27 171 21401600 2400
87371121 bleh0.5 D July 19, 2020, 4:15 p.m. OK Java 8 TESTS 27 264 30105600 2400
87341258 SecondThread D July 19, 2020, 10:58 a.m. OK Java 8 TESTS 27 1684 241766400 2400
87389339 4mda4mda D July 19, 2020, 11:59 p.m. OK Java 8 TESTS 27 1903 21299200 2400
87367874 Tlatoani D July 19, 2020, 3:33 p.m. OK Kotlin TESTS 27 405 43724800 2400
87328604 Pnn1337 D July 19, 2020, 10:30 a.m. OK MS C++ 2017 TESTS 27 108 5734400 2400
87346050 kclee2172 D July 19, 2020, 11:45 a.m. OK PyPy 3 TESTS 27 436 39731200 2400
87351908 throwawayatcoder D July 19, 2020, 12:38 p.m. OK PyPy 3 TESTS 27 483 50483200 2400
87344374 throwawayatcoder D July 19, 2020, 11:34 a.m. OK PyPy 3 TESTS 27 748 64716800 2400
87362060 cyhan D July 19, 2020, 2:27 p.m. OK PyPy 3 TESTS 27 764 42188800 2400
87356040 chinerist D July 19, 2020, 1:23 p.m. OK PyPy 3 TESTS 27 795 43212800 2400
87356295 chinerist D July 19, 2020, 1:26 p.m. OK PyPy 3 TESTS 27 811 48128000 2400
87355160 chinerist D July 19, 2020, 1:13 p.m. OK PyPy 3 TESTS 27 951 45465600 2400
87353144 chinerist D July 19, 2020, 12:50 p.m. OK PyPy 3 TESTS 27 1950 51916800 2400
87347059 sh1194 D July 19, 2020, 11:53 a.m. OK Python 3 TESTS 27 607 27340800 2400
87347363 sh1194 D July 19, 2020, 11:55 a.m. OK Python 3 TESTS 27 608 27238400 2400
87380136 r57shell D July 19, 2020, 6:54 p.m. OK Python 3 TESTS 27 857 23859200 2400
87314899 sansen D July 19, 2020, 10 a.m. OK Rust TESTS 27 93 15462400 2400
87369309 robostac D July 19, 2020, 3:50 p.m. OK Rust TESTS 27 1028 327168000 2400

remove filters

Back to search problems