|
|
вернуться в форумhow is output 383 and not 241 for sample cases first the person goes to (2,2) from (1,1) +141 then (3,2) +100 so why not 241? Re: how is output 383 and not 241 for sample cases (0, 0) -> (1, 1) = sqrt(2) * 100 (1, 1) -> (2, 1) = 100 (2, 1) -> (3, 2) = sqrt(2) * 100 Total: 382.842712475 ~ 383 Edited by author 26.07.2014 17:17 Re: how is output 383 and not 241 for sample cases Then shouldnt the problem wording be stated as rounding the solution to the nearest integer? If I just round 382.84 to its integer value, it would be 382. |
|
|