Wrong Answer for Problem 1B

Правка en2, от kiner_shah, 2015-12-18 14:41:11

I tried to solve this problem but for some reason the C++ compiler calculates power of 26 raised to 1 as 25 and I am getting wrong answer! Here is the submission link. http://codeforces.me/contest/1/submission/14859704 Any corrections to the code are appreciated. Also, if there are any internal compiler error, please let me know!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en6 Английский kiner_shah 2015-12-18 14:46:44 13 Tiny change: 'ubmission/[submission:14859704]\nAny corr' -> 'ubmission/14859704\nAny corr'
en5 Английский kiner_shah 2015-12-18 14:46:22 13 Tiny change: 'ubmission/14859704\nAny corr' -> 'ubmission/[submission:14859704]\nAny corr'
en4 Английский kiner_shah 2015-12-18 14:45:02 80
en3 Английский kiner_shah 2015-12-18 14:43:16 81
en2 Английский kiner_shah 2015-12-18 14:41:11 342 (published)
en1 Английский kiner_shah 2015-12-18 14:38:07 19 Initial revision (saved to drafts)