Weird things happened in USACO
Difference between en1 and en2, changed 96 character(s)
Edit: I did write output file ↵

![Here](https://i.loli.net/2020/11/19/u9pvYn32PKLkI8U.png)↵

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](https://i.loli.net/2020/11/19/iZV6C9tGqRkvs8W.png)↵
![USACO 2016 G JAN](https://i.loli.net/2020/11/19/BPl1tLSJVdWv3fx.png)↵

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

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)