Codechef cookoff division 1 que : "GukiZ and Candies"

Правка en1, от lostbattle, 2018-08-19 22:30:18

problem link here :- https://www.codechef.com/COOK97A/problems/GUZAC

for test case :- n=3 k=1 x=2 p1=999999999 the resultant answer is 3000000000(1000000000 + 1000000001+999999999) (as per all accepted codes), but should it not be 2999999997 (999999998+1000000000+999999999) as clearly given pi<=1000000000. I tried hard to understand but couldnt ! can anyone explain me this question ?

Теги cookoff, #doubt

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский lostbattle 2018-08-19 22:30:18 449 Initial revision (published)