get the idea

Правка en2, от vsanjay_nitdgp, 2015-08-08 18:42:44

Sir..I tried the below question ..I got the correct answer for all test cases.but I got TLE due to constraints..then I saw some users solutions..they did that problem with a formula...but I wonder what is that formula....could any one explain how to get AC with in time limit..and explain that formula clearly..how did they get it. https://www.codechef.com/PROCON15/problems/PRCNSR1

Thanks

Теги basic math

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский vsanjay_nitdgp 2015-08-08 18:42:44 54
en1 Английский vsanjay_nitdgp 2015-08-08 18:41:32 351 Initial revision (published)