VK Cup 2018 - Round 3

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
925 VK Cup 2018 - Round 3 FINISHED False 9000 206815499 April 29, 2018, 1:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3479 ) A Stairs and Elevators PROGRAMMING binary search 1700

B'In the year of 30XX participants of some world programming championship live in a single large hotel. The hotel has n floors. Each floor has m sections with a single corridor connecting all of them. The sections are enumerated from 1 to m along the corridor, and all sections with equal numbers on different floors are located exactly one above the other. Thus, the hotel can be represented as a rectangle of height n and width m . We can denote sections with pairs of integers (i, j) , where i is the floor, and j is the section number on the floor. The guests can walk along the corridor on each floor, use stairs and elevators. Each stairs or elevator occupies all sections (1, x) , (2, x) , ldots , (n, x) for some x between 1 and m . All sections not occupied with stairs or elevators contain guest rooms. It takes one time unit to move between neighboring sections on the same floor or to move one floor up or down using stairs. It takes one time unit to move up to v floors in any direction using an elevator. You can assume you don 't have to wait for an elevator, and the time needed to enter or exit an elevator is negligible. You are to process q queries. Each query is a question "what is the minimum time needed to go from a room in section (x_1, y_1) to a room in section (x_2, y_2) ?" The first line contains five integers n, m, c_l, c_e, v ( 2 <= q n, m <= q 10^8 , 0 <= q c_l, c_e <= q 10^5 , 1 <= q c_l + c_e <= q m - 1 , 1 <= q v <= q n - 1 ) -- the number of floors and section on each floor, the number of stairs, the number of elevators and the maximum speed of an elevator, respectively. The second line contains c_l integers l_1, ldots, l_{c_l} in increasing order ( 1 <= q l_i <= q m ), denoting the positions of the stairs. If c_l = 0 , the second line is empty. The third line contains c_e '...

Tutorials

Разбор VK 2018 Round 3 + Codeforces Round #477

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
39002154 MPRUDRA A June 6, 2018, 6:46 p.m. OK GNU C TESTS 27 187 819200 1700
40978333 ReaLNero1 A July 30, 2018, 4:35 p.m. OK GNU C++ TESTS 27 78 819200 1700
37995789 vjudge3 A May 7, 2018, 1 p.m. OK GNU C++ TESTS 27 109 4096000 1700
37741051 zhenghaishu A April 30, 2018, 6:09 a.m. OK GNU C++ TESTS 27 171 4096000 1700
37924799 valorwxp A May 6, 2018, 9:24 a.m. OK GNU C++ TESTS 27 187 4096000 1700
37745021 AnnieCai A April 30, 2018, 9:38 a.m. OK GNU C++ TESTS 27 483 9932800 1700
37711965 HulkHoggan sdryapko A April 29, 2018, 1:37 p.m. OK GNU C++ TESTS 27 733 5120000 1700
39528941 paregrine A June 22, 2018, 10:47 p.m. OK GNU C++ TESTS 27 1606 1638400 1700
39528885 paregrine A June 22, 2018, 10:38 p.m. OK GNU C++ TESTS 27 1637 1638400 1700
51931643 vjudge5 A March 28, 2019, 10:42 a.m. OK GNU C11 TESTS 27 498 819200 1700
59853178 foreverlasting A Sept. 1, 2019, 12:26 p.m. OK GNU C++11 TESTS 27 93 819200 1700
42730724 functionendless A Sept. 10, 2018, 11:23 a.m. OK GNU C++11 TESTS 27 109 819200 1700
57767997 py_ultron A July 25, 2019, 10:02 p.m. OK GNU C++11 TESTS 27 124 614400 1700
65827639 luogu_bot2 A Nov. 27, 2019, 1:10 p.m. OK GNU C++11 TESTS 27 139 921600 1700
55227254 _ShadowSong A June 7, 2019, 2:50 a.m. OK GNU C++11 TESTS 27 140 614400 1700
57871526 lopare A July 28, 2019, 2:12 a.m. OK GNU C++11 TESTS 27 140 614400 1700
51897654 vjudge5 A March 27, 2019, 12:17 p.m. OK GNU C++11 TESTS 27 140 819200 1700
47251517 ACMWGR A Dec. 19, 2018, 8:29 a.m. OK GNU C++11 TESTS 27 140 819200 1700
59853640 luogu_bot5 A Sept. 1, 2019, 12:38 p.m. OK GNU C++11 TESTS 27 140 819200 1700
65827655 luogu_bot1 A Nov. 27, 2019, 1:10 p.m. OK GNU C++11 TESTS 27 140 921600 1700
61042976 vjudge5 A Sept. 22, 2019, 2:16 a.m. OK GNU C++14 TESTS 27 140 819200 1700
61202595 Helman A Sept. 24, 2019, 8:23 a.m. OK GNU C++14 TESTS 27 155 819200 1700
61202904 Helman A Sept. 24, 2019, 8:30 a.m. OK GNU C++14 TESTS 27 155 819200 1700
60987610 vjudge5 A Sept. 21, 2019, 8:13 a.m. OK GNU C++14 TESTS 27 171 819200 1700
55012925 OO0OO0OO0OO0 A June 3, 2019, 11:01 a.m. OK GNU C++14 TESTS 27 186 819200 1700
37719390 arzhantsev64 alexey_kuldoshin A April 29, 2018, 2:26 p.m. OK GNU C++14 TESTS 27 186 4096000 1700
39215783 wu_qing gabr1el A June 13, 2018, 12:10 p.m. OK GNU C++14 TESTS 27 187 819200 1700
50162766 TistPetr-is-ok A Feb. 19, 2019, 1:19 p.m. OK GNU C++14 TESTS 27 187 819200 1700
51884186 vjudge1 A March 27, 2019, 5:05 a.m. OK GNU C++14 TESTS 27 187 819200 1700
41460087 DEMOPON A Aug. 11, 2018, 8:15 a.m. OK GNU C++14 TESTS 27 187 819200 1700
61042916 Amither A Sept. 22, 2019, 2:13 a.m. OK GNU C++17 TESTS 27 156 819200 1700
51961417 vjudge4 A March 29, 2019, 7:03 a.m. OK GNU C++17 TESTS 27 171 819200 1700
37718961 felix Trumen A April 29, 2018, 2:23 p.m. OK GNU C++17 TESTS 27 202 4198400 1700
37883229 sudo_pacman A May 4, 2018, 12:49 p.m. OK GNU C++17 TESTS 27 217 4403200 1700
69536109 Priyam2k A Jan. 25, 2020, 6:56 p.m. OK GNU C++17 TESTS 27 218 819200 1700
37717061 khadaev A April 29, 2018, 2:09 p.m. OK GNU C++17 TESTS 27 218 4198400 1700
67180828 vjudge4 A Dec. 18, 2019, 10:56 p.m. OK GNU C++17 TESTS 27 233 1638400 1700
37709132 Golovanov399 I_hate_ACM A April 29, 2018, 1:23 p.m. OK GNU C++17 TESTS 27 233 4198400 1700
38450382 DANDROZAVR A May 20, 2018, 7:07 a.m. OK GNU C++17 TESTS 27 234 819200 1700
67180836 GeorgeRaouf A Dec. 18, 2019, 10:56 p.m. OK GNU C++17 TESTS 27 248 1638400 1700
57813524 JCKG A July 26, 2019, 6:32 p.m. OK Java 8 TESTS 27 265 0 1700
57815933 JCKG A July 26, 2019, 7:41 p.m. OK Java 8 TESTS 27 280 0 1700
60420879 darren_yao A Sept. 12, 2019, 5:56 a.m. OK Java 8 TESTS 27 295 1228800 1700
37729979 amnesiac_dusk A April 29, 2018, 5:36 p.m. OK Java 8 TESTS 27 311 23552000 1700
37846695 OMS A May 2, 2018, 5:42 p.m. OK Java 8 TESTS 27 312 24678400 1700
38005383 unicorn20141 A May 7, 2018, 7:12 p.m. OK Java 8 TESTS 27 327 26009600 1700
37729358 4mda4mda A April 29, 2018, 4:56 p.m. OK Java 8 TESTS 27 343 26316800 1700
37717380 iskander232 alexander89116 A April 29, 2018, 2:11 p.m. OK Java 8 TESTS 27 374 24678400 1700
37792873 Geralt A May 1, 2018, 8:35 a.m. OK Java 8 TESTS 27 405 24064000 1700
37714893 Au-Rikka Seemann A April 29, 2018, 1:54 p.m. OK Java 8 TESTS 27 405 27648000 1700
52027237 vjudge2 A March 30, 2019, 3:34 p.m. OK MS C++ TESTS 27 140 1024000 1700
37710414 BledDest Perforator A April 29, 2018, 1:30 p.m. OK MS C++ TESTS 27 217 4300800 1700
51997759 vjudge5 A March 30, 2019, 3:53 a.m. OK MS C++ TESTS 27 483 921600 1700
37722076 katan innok96 A April 29, 2018, 2:49 p.m. OK MS C++ TESTS 27 826 4300800 1700
50152956 vjudge5 A Feb. 19, 2019, 8:26 a.m. OK MS C++ TESTS 27 857 1638400 1700
50153056 vjudge3 A Feb. 19, 2019, 8:29 a.m. OK MS C++ TESTS 27 889 7987200 1700
37716189 Squantus Kniaz A April 29, 2018, 2:02 p.m. OK MS C++ TESTS 27 904 5120000 1700
54257578 Still_Theory A May 16, 2019, 9:17 p.m. OK MS C++ 2017 TESTS 27 654 6451200 1700
42120565 Mk_Python_v1 A Aug. 26, 2018, 12:15 p.m. OK Python 3 TESTS 27 1824 9830400 1700

remove filters

Back to search problems