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 |
---|---|---|---|---|---|---|
1218 | Bubble Cup 12 - Finals [Online Mirror, unrated, Div. 1] | FINISHED | False | 18000 | 163268699 | Sept. 15, 2019, 1:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 183 ) | C | Jumping Transformers | PROGRAMMING | dp | 2800 |
B'You, the mighty Blackout, are standing in the upper-left (0,0) corner of N x M matrix. You must move either right or down each second. There are K transformers jumping around the matrix in the following way. Each transformer starts jumping from position (x,y) , at time t , and jumps to the next position each second. The x -axes grows downwards, and y -axes grows to the right. The order of jumping positions is defined as {(x,y),(x+d,y-d),(x+d,y),(x,y+d)} , and is periodic. Before time t transformer is not in the matrix. You want to arrive to the bottom-right corner (N-1,M-1) , while slaying transformers and losing the least possible amount of energy. When you meet the transformer (or more of them) in the matrix field, you must kill them all, and you lose the sum of the energy amounts required to kill each transformer. After the transformer is killed, he of course stops jumping, falls into the abyss and leaves the matrix world. Output minimum possible amount of energy wasted. In the first line, integers N , M ( 1 <= q N, M <= q 500 ), representing size of the matrix, and K ( 0 <= q K <= q 5*10^5 ) , the number of jumping transformers. In next K lines, for each transformer, numbers x , y , d ( d geq 1 ), t ( 0 <= q t <= q N+M-2 ), and e ( 0 <= q e <= q 10^9 ), representing starting coordinates of transformer, jumping positions distance in pattern described above, time when transformer starts jumping, and energy required to kill it. It is guaranteed that all 4 of jumping points of the transformers are within matrix coordinates Print single integer, the minimum possible amount of energy wasted, for Blackout to arrive at bottom-right corner. If Blackout takes the path from (0, 0) to (2, 0), and then from (2, 0) to (2, 2) he will need to kill the first and third transformer for a total energy cost of 9. There exists no path with less e'... |
E |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
61471358 | PinkEx | C | Sept. 29, 2019, 12:28 p.m. | OK | GNU C++11 | TESTS | 30 | 920 | 24780800 | 2800 | |
69834563 | luyuchen | C | Jan. 30, 2020, 11:27 a.m. | OK | GNU C++11 | TESTS | 30 | 997 | 24678400 | 2800 | |
63061900 | zyt1253679098 | C | Oct. 21, 2019, 9:02 a.m. | OK | GNU C++11 | TESTS | 30 | 1123 | 35532800 | 2800 | |
63239343 | 2829908231 | C | Oct. 23, 2019, 1:03 p.m. | OK | GNU C++11 | TESTS | 30 | 1559 | 35430400 | 2800 | |
60740129 | BigBag | C | Sept. 17, 2019, 7:31 p.m. | OK | GNU C++11 | TESTS | 30 | 1856 | 28672000 | 2800 | |
62338505 | xymtxdy | C | Oct. 11, 2019, 3:23 a.m. | OK | GNU C++11 | TESTS | 30 | 2121 | 54886400 | 2800 | |
60739902 | BigBag | C | Sept. 17, 2019, 7:24 p.m. | OK | GNU C++11 | TESTS | 30 | 2136 | 20582400 | 2800 | |
69818547 | xiaotianyao | C | Jan. 30, 2020, 6:57 a.m. | OK | GNU C++11 | TESTS | 30 | 2230 | 18534400 | 2800 | |
64207006 | Dream-chasing_Juvenile | C | Nov. 4, 2019, 1:09 p.m. | OK | GNU C++11 | TESTS | 30 | 2713 | 18841600 | 2800 | |
61035998 | wakaka | C | Sept. 21, 2019, 7:53 p.m. | OK | GNU C++14 | TESTS | 30 | 1091 | 25907200 | 2800 | |
69380261 | _Ash__ | C | Jan. 22, 2020, 7:27 p.m. | OK | GNU C++14 | TESTS | 30 | 1419 | 45465600 | 2800 | |
60745564 | Cyanic | C | Sept. 18, 2019, 1:07 a.m. | OK | GNU C++14 | TESTS | 30 | 1606 | 45363200 | 2800 | |
60709950 | aviroop123 | C | Sept. 17, 2019, 7:43 a.m. | OK | GNU C++14 | TESTS | 30 | 1715 | 95129600 | 2800 | |
61536410 | zhongzero | C | Sept. 30, 2019, 6:37 a.m. | OK | GNU C++14 | TESTS | 30 | 1794 | 16588800 | 2800 | |
60780891 | krijgertje | C | Sept. 18, 2019, 4:07 p.m. | OK | GNU C++14 | TESTS | 30 | 1824 | 32563200 | 2800 | |
67147098 | vjudge5 | C | Dec. 18, 2019, 9:17 a.m. | OK | GNU C++14 | TESTS | 30 | 1902 | 33382400 | 2800 | |
67137027 | vjudge3 | C | Dec. 18, 2019, 4:52 a.m. | OK | GNU C++14 | TESTS | 30 | 1996 | 33382400 | 2800 | |
61035349 | wakaka | C | Sept. 21, 2019, 7:30 p.m. | OK | GNU C++14 | TESTS | 30 | 2152 | 21606400 | 2800 | |
60647249 | Denisson ShadowLight DmitryGrigorev | C | Sept. 15, 2019, 5:38 p.m. | OK | GNU C++14 | TESTS | 30 | 2152 | 55193600 | 2800 | |
61515669 | teapotd | C | Sept. 29, 2019, 5:25 p.m. | OK | GNU C++17 | TESTS | 30 | 858 | 21401600 | 2800 | |
60639957 | Nebuchadnezzar kraborak cdkrot | C | Sept. 15, 2019, 3:08 p.m. | OK | GNU C++17 | TESTS | 30 | 904 | 28774400 | 2800 | |
61112359 | forgottencsc | C | Sept. 23, 2019, 11:44 a.m. | OK | GNU C++17 | TESTS | 30 | 935 | 24576000 | 2800 | |
60641179 | zscoder gamegame Reyna | C | Sept. 15, 2019, 3:28 p.m. | OK | GNU C++17 | TESTS | 30 | 982 | 30720000 | 2800 | |
60637983 | kdh9949 | C | Sept. 15, 2019, 2:35 p.m. | OK | GNU C++17 | TESTS | 30 | 1294 | 21606400 | 2800 | |
60700065 | Batrr | C | Sept. 16, 2019, 11:02 p.m. | OK | GNU C++17 | TESTS | 30 | 1481 | 45670400 | 2800 | |
66507027 | HatsuneMikuo | C | Dec. 8, 2019, 2:50 p.m. | OK | GNU C++17 | TESTS | 30 | 1543 | 62771200 | 2800 | |
66507101 | interestingLSY | C | Dec. 8, 2019, 2:52 p.m. | OK | GNU C++17 | TESTS | 30 | 1575 | 62771200 | 2800 | |
66507167 | HatsuneMikuo | C | Dec. 8, 2019, 2:53 p.m. | OK | GNU C++17 | TESTS | 30 | 1621 | 62464000 | 2800 | |
60647867 | Fly_37 w0nsh Grzmot | C | Sept. 15, 2019, 5:52 p.m. | OK | GNU C++17 | TESTS | 30 | 1622 | 26931200 | 2800 | |
60952895 | SecondThread Ahmad Harpae | C | Sept. 20, 2019, 11:36 p.m. | OK | Java 8 | TESTS | 30 | 3977 | 87552000 | 2800 | |
60952941 | SecondThread | C | Sept. 20, 2019, 11:38 p.m. | OK | Java 8 | TESTS | 30 | 3993 | 87552000 | 2800 |
Back to search problems