Java programming numerical
Budget: $10 – $30 AUD
INPUT FORMAT (file hikernet1.txt):
The first line of input contains N.
To make the programming easy, we assume all numerical variables are integers. The next N lines each contain the x and y coordinates of a hiker (integers in the range 0…25,000) followed by w, the transmission power of the walkie-talkie held by this hiker.
OUTPUT FORMAT (file hikernet1out.txt):
Output a single line containing the maximum number of hikers a transmission from a hiker can reach. The originating hiker is included in this number.
SAMPLE INPUT:
4
1 3 5
5 4 3
7 2 1
6 1 1
SAMPLE OUTPUT:
3
The first line of input contains N.
To make the programming easy, we assume all numerical variables are integers. The next N lines each contain the x and y coordinates of a hiker (integers in the range 0…25,000) followed by w, the transmission power of the walkie-talkie held by this hiker.
OUTPUT FORMAT (file hikernet1out.txt):
Output a single line containing the maximum number of hikers a transmission from a hiker can reach. The originating hiker is included in this number.
SAMPLE INPUT:
4
1 3 5
5 4 3
7 2 1
6 1 1
SAMPLE OUTPUT:
3