Wrong Answer for Problem 1B

Revision en6, by kiner_shah, 2015-12-18 14:46:44

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.com/contest/1/submission/14859704 Any corrections to the code are appreciated. Also, if there are any internal compiler error, please let me know! I also checked the same code on Ideone.com and it works correctly there! P.S. I tried to debug the code and I am quite shocked after seeing the results.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en6 English kiner_shah 2015-12-18 14:46:44 13 Tiny change: 'ubmission/[submission:14859704]\nAny corr' -> 'ubmission/14859704\nAny corr'
en5 English kiner_shah 2015-12-18 14:46:22 13 Tiny change: 'ubmission/14859704\nAny corr' -> 'ubmission/[submission:14859704]\nAny corr'
en4 English kiner_shah 2015-12-18 14:45:02 80
en3 English kiner_shah 2015-12-18 14:43:16 81
en2 English kiner_shah 2015-12-18 14:41:11 342 (published)
en1 English kiner_shah 2015-12-18 14:38:07 19 Initial revision (saved to drafts)