Weird things happened in USACO

Revision en2, by MVP_Harry, 2020-11-18 20:34:13

Edit: I did write output file

Here

I've been doing some past USACO Gold problems lately, but I have met some troubles regarding submission. Although my program outputs the correct answer, it keeps telling me that the answer is incorrect. I've met these kind of troubles before, so I thought its just a format issue. But no matter how I adjust the way I output the answer, it doesn't work.

For example, I have tried cout << ans << "\n"; cout << ans << endl; cout << ans << " "; cout << ans; but non of them works.

Here are two screenshots:

USACO 2015 G DEC USACO 2016 G JAN

Can someone please help me with that? I just don't want to run into these kind of troubles during real contest lol. Thanks!

Tags usaco

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English MVP_Harry 2020-11-18 20:47:06 181
en2 English MVP_Harry 2020-11-18 20:34:13 96
en1 English MVP_Harry 2020-11-18 20:18:38 853 Initial revision (published)