Блог пользователя Kei.One

Автор Kei.One, 10 лет назад, По-английски

Hello I have a little problem with usaco. i'm new there and i want to see if my solution is right or not but i don't know how to use the tesdata files that is in there i would appreciate if somebody could tell me how to use it.

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

»
10 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

First of all you have to open the input file for reading, writing and for c++ the opening file code is:

freopen("input.in", "r", stdin);
freopen("output.out", "w", stdout);

For each question there is the input and output file name in which you should paste it in the code and In order to send a code for online-training pages You gotta add header to your code which is like this:

/*
ID: your_id_here
PROG: problem_name
LANG: C++
*/
»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится