Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

Different Answers

$
0
0

I ran the code given below on Ideone and on Xcode (an IDE on mac). Shockingly, they gave me two different answers for the test cases given along with the problem.

Ideone shows "Nana". Whereas Xcode shows "Nobody wins".

Ideone: alt text

Xcode: alt text

Ideone is showing an incorrect answer. Codechef is giving a WA too. What can the reason be for this discrepancy?

My code: http://ideone.com/QWFdC7

Problem: http://www.codechef.com/problems/NUMBERS/


Viewing all articles
Browse latest Browse all 39796

Trending Articles