Output matches but still get a WA

Revision en1, by sherewillpower, 2017-10-08 20:09:06

Hi, I've been trying to solve this problem(Building Blocks on codechef) for some time now but always end up with a WA.

I have matched my output for all inputs(n = 0 to 10^5) with that from an AC code and found no differences.

When I submit my code it fetches me a WA while the other code gives an AC veridct. :(

My submission: https://www.codechef.com/viewsolution/15623378

AC code with which i matched my output : https://www.codechef.com/viewsolution/15618920

I can't seem to understand whats wrong. Is this an issue of the judge? Any help would be appreciated.

Thanks!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sherewillpower 2017-10-08 20:09:06 673 Initial revision (published)