WIL's blog

By WIL, 9 years ago, In English

Recently i saw the following fragment of code in some solutions here in codeforce and another online judges, and my question is. What is this code?

    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    #endif

thank in advance!

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
9 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Maybe this can help.