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 |
---|---|---|---|---|---|---|
1523 | Deltix Round, Spring 2021 (open for everyone, rated, Div. 1 + Div. 2) | FINISHED | False | 8100 | 114967511 | May 30, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 438 ) | F | Favorite Game | PROGRAMMING | dp | 3300 |
B"After William is done with work for the day, he enjoys playing his favorite video game. The game happens in a 2D world, starting at turn 0 . William can pick any cell in the game world and spawn in it. Then, each turn, William may remain at his current location or move from the current location (x, y) to one of the following locations: (x + 1, y), (x - 1, y), (x, y + 1), (x, y - 1). To accelerate movement the game has n fast travel towers. i -th tower is located at location ( xa_i, ya_i ). To be able to instantly travel to the tower from any location in the game world it must first be activated. Activation of tower i happens at the moment when the player is in cell ( xa_i, ya_i ) after this the tower remains active throughout the entire game. William also knows that the game has m quests. i -th quest can be completed instantly by being at location ( xb_i, yb_i ) on turn t_i . William wants to find out the maximal number of quests he will be able to complete by optimally traversing the game world. The first line contains two integers n and m ( 0 <= n <= 14, 1 <= m <= 100 ), which are the number of towers and the number of quests, respectively. Each of the next n lines contains two integers xa_i, ya_i ( 1 <= xa_i, ya_i <= 10^6 ), which are the coordinates of fast travel towers. Each of the next m lines contains two integers xb_i , yb_i and t_i ( 1 <= xb_i, yb_i <= 10^6 , 1 <= t_i <= 10^9 ), which are the coordinates of quests and the turn at which it may be completed. It is guaranteed that all locations in a test are different. Print a single number -- the maximal number of quests William will be able to complete. In the first sample test one of the possible sequences of William's actions is as follows: "... |
Deltix Round, Spring 2021. Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
117912347 | LJC00118 | F | May 30, 2021, 4:25 p.m. | OK | GNU C++11 | TESTS | 56 | 280 | 21606400 | 3300 | |
117947240 | wangdyakioi | F | May 31, 2021, 3:42 a.m. | OK | GNU C++11 | TESTS | 56 | 390 | 21708800 | 3300 | |
117952628 | KoharuHondomachi | F | May 31, 2021, 5:08 a.m. | OK | GNU C++11 | TESTS | 56 | 529 | 14745600 | 3300 | |
117936103 | duality | F | May 30, 2021, 8:58 p.m. | OK | GNU C++11 | TESTS | 56 | 608 | 13312000 | 3300 | |
117935723 | duality | F | May 30, 2021, 8:49 p.m. | OK | GNU C++11 | TESTS | 56 | 1856 | 13312000 | 3300 | |
117929711 | sh1194 | F | May 30, 2021, 7:01 p.m. | OK | GNU C++14 | TESTS | 56 | 421 | 20684800 | 3300 | |
117929621 | sh1194 | F | May 30, 2021, 7 p.m. | OK | GNU C++14 | TESTS | 56 | 421 | 20684800 | 3300 | |
117922485 | nealchen | F | May 30, 2021, 5:37 p.m. | OK | GNU C++14 | TESTS | 56 | 452 | 20684800 | 3300 | |
117938588 | krijgertje | F | May 30, 2021, 10:31 p.m. | OK | GNU C++14 | TESTS | 56 | 1528 | 8499200 | 3300 | |
117927249 | Kurpilyansky | F | May 30, 2021, 6:26 p.m. | OK | GNU C++17 | TESTS | 56 | 483 | 22732800 | 3300 | |
117921807 | gisp_zjz | F | May 30, 2021, 5:33 p.m. | OK | GNU C++17 | TESTS | 56 | 732 | 36454400 | 3300 | |
117926319 | rama_pang | F | May 30, 2021, 6:15 p.m. | OK | GNU C++17 | TESTS | 56 | 733 | 23040000 | 3300 | |
117942952 | cs142857 | F | May 31, 2021, 1:53 a.m. | OK | GNU C++17 | TESTS | 56 | 1216 | 23347200 | 3300 | |
117926534 | receed | F | May 30, 2021, 6:17 p.m. | OK | GNU C++17 | TESTS | 56 | 1528 | 29081600 | 3300 | |
117925073 | Kurpilyansky | F | May 30, 2021, 6:01 p.m. | OK | GNU C++17 | TESTS | 56 | 1622 | 24473600 | 3300 | |
117922402 | iaNTU | F | May 30, 2021, 5:37 p.m. | OK | GNU C++17 | TESTS | 56 | 1715 | 51302400 | 3300 | |
117929170 | Amoo_Safar | F | May 30, 2021, 6:53 p.m. | OK | GNU C++17 | TESTS | 56 | 1981 | 28876800 | 3300 | |
117924185 | Kurpilyansky | F | May 30, 2021, 5:52 p.m. | OK | GNU C++17 | TESTS | 56 | 1996 | 16076800 | 3300 | |
117924578 | Marcin_smu | F | May 30, 2021, 5:56 p.m. | OK | GNU C++17 | TESTS | 56 | 1996 | 50995200 | 3300 | |
117911622 | aid | F | May 30, 2021, 4:22 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 342 | 21606400 | 3300 | |
117923029 | jiangly | F | May 30, 2021, 5:41 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 358 | 22118400 | 3300 | |
117947036 | ustze | F | May 31, 2021, 3:38 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 420 | 23654400 | 3300 | |
117916378 | yhx-12243 | F | May 30, 2021, 4:41 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 421 | 22323200 | 3300 | |
117921125 | kefaa2 | F | May 30, 2021, 5:29 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 452 | 6758400 | 3300 | |
117920394 | Maripium | F | May 30, 2021, 5:26 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 468 | 7372800 | 3300 | |
117931219 | tute7627 | F | May 30, 2021, 7:23 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 514 | 14643200 | 3300 | |
117945233 | Roundgod | F | May 31, 2021, 2:56 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 529 | 21606400 | 3300 | |
117946338 | ZCKevin | F | May 31, 2021, 3:23 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 530 | 25088000 | 3300 | |
117946352 | ZCKevin | F | May 31, 2021, 3:23 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 545 | 25088000 | 3300 | |
117908695 | qwerty787788 | F | May 30, 2021, 4:10 p.m. | OK | Rust | TESTS | 56 | 1014 | 14540800 | 3300 |
Back to search problems