imesecan | Oct.07.2015 at 01:56:10 PM | |
0 | --- Test 1 --- 5 5 4 2 2 2 2 2 1 5 3 5 3 3 2 5 3 4 5 3
--- Pattern --- 5
|
imesecan | Feb.03.2017 at 01:44:11 PM | |
1 | Sample Input 2: Restaurant 1: 0 and other restaurants (2,3,4 and 5) have two visitors.
|
imesecan | Feb.04.2017 at 07:40:32 PM | |
2 | 1) The number of visitors to the restaurants are given in the second line. Your aim is to maximize the total sell within given distance. 2) If a restaurant is further than the given distance, it is not count.
|
imesecan | Feb.04.2017 at 07:42:01 PM | |
3 | Yes, you will calculate shortest distance (which may pass through other restaurants).
|