C++: Different output on Codeforces and Ideone [Solved]

Revision en4, by dhsrhkdgus, 2017-05-21 14:35:12

http://codeforces.me/contest/439/submission/27259616

I got WA on test case 3, but I get the right answer when I test the same code in my sublime text. (Or even in http://ideone.com/jcoVSl)

Can somebody please help me?

[Solved] finv[n-k] is out of bound when n < k new submission: http://codeforces.me/contest/439/submission/27265838

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English dhsrhkdgus 2017-05-21 14:35:12 129
en3 English dhsrhkdgus 2017-05-21 14:23:23 29
en2 English dhsrhkdgus 2017-05-21 10:47:30 2 Tiny change: 'test case 4, but I ge' -> 'test case 3, but I ge'
en1 English dhsrhkdgus 2017-05-21 10:46:34 267 Initial revision (published)