Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

littlesquare101's blog

By littlesquare101, history, 2 years ago, In English

I wanted to practice some old USACO problems from around 2017, but all of them require file input/output which is outdated and annoying. Is there a codeforces archive that contains old USACO problems but with standard input/output?

  • Vote: I like it
  • -7
  • Vote: I do not like it

| Write comment?
»
2 years ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

Just solve them ignoring the file I/O and then add the two lines, it's not a big deal.

I think the USACO folks explicitly ask for the problems not to be made available anywhere else, so I don't think you'll find them.

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it -6 Vote: I do not like it

    but I think its annoying to have to copy the sample to another file

    • »
      »
      »
      2 years ago, hide # ^ |
       
      Vote: I like it +8 Vote: I do not like it

      solve the problem exactly the same as cf but just uncomment

      ifstream cin("filename.in");
      ofstream cout("filename.out");
      

      every time you submit