VK Cup 2015 - Wild Card Round 1

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
530 VK Cup 2015 - Wild Card Round 1 FINISHED False 9000 304261199 March 28, 2015, 5 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 107 ) F Jumping frogs PROGRAMMING *special 2300

B'A rectangular swamp is inhabited by 10 species of frogs. Frogs of species i can jump from hillocks to hillock exactly i units along X-axis or Y-axis. Initially frogs of all types sit at the hillock at coordinates (0, 0). You are given coordinates of all other hillocks in the swamp. Find the largest Manhattan distance from (0, 0) to any hillock to which one of the frogs can travel by jumping between hillocks. Manhattan distance between (x1, xe2 x80 x89y1) and (x2, xe2 x80 x89y2) is |x1 xe2 x80 x89- xe2 x80 x89x2| xe2 x80 x89+ xe2 x80 x89|y1 xe2 x80 x89- xe2 x80 x89y2|. The first line of the input contains an integer N (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) - the number of hillocks. The following N lines contain the coordinates of the hillocks, formatted as "X Y" ( xe2 x80 x89- xe2 x80 x8920 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89X, xe2 x80 x89Y xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8920). All hillocks are distinct, and none of them is located at (0, 0). Output a single integer -- the largest Manhattan distance to any hillock reachable by one of the frogs by jumping between hillocks. In the first example frogs of species 1, 2 and 3 can jump as far as the first, the second and the third hillocks, respectively. In the second example frog of species 2 can jump to the second hillock, then to the fourth and finally to the fifth. In the third example no frog can reach the hillock.'...

Tutorials

VK Cup 2015 Wild Card Round 1: editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
10519442 YakutovDmitriy F March 29, 2015, 7:13 p.m. OK Picat TESTS 20 15 0 2300
10518157 DimonK F March 29, 2015, 4:59 p.m. OK Picat TESTS 20 15 0 2300
10507283 eduardische Chortos-2 F March 28, 2015, 6:55 p.m. OK Picat TESTS 20 15 0 2300
10536637 wilcot F March 31, 2015, 7:55 p.m. OK Picat TESTS 20 15 3993600 2300
23506206 Ali.Pi F Jan. 2, 2017, 8:34 p.m. OK Picat TESTS 20 15 30720000 2300
35886234 ______u______ F March 3, 2018, 1:43 p.m. OK Picat TESTS 20 30 34713600 2300
35885958 ______n______ F March 3, 2018, 1:38 p.m. OK Picat TESTS 20 30 34713600 2300
35885295 _____k_____ F March 3, 2018, 1:27 p.m. OK Picat TESTS 20 30 34713600 2300
35884980 _____i_____ F March 3, 2018, 1:21 p.m. OK Picat TESTS 20 30 34713600 2300
35874206 ______h______ F March 3, 2018, 7:46 a.m. OK Picat TESTS 20 30 34713600 2300

remove filters

Back to search problems