ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

StdIn
Posted by gepo 1 Sep 2004 01:28
Can I use reading stdin more than once? I tried write "reset(input)", but I got WA#1

Edited by author 01.09.2004 01:31
You can reread input if you will rewrite it.
Posted by A new start... 3 Sep 2004 09:30
For example:

reset(input);
{...reading...}
close(input);
rewrite(input);
{...writing readed data...}
close(input);
reset(input);
{...reading second time...}

all another ways i've used doesn't work.