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

Discussion of Problem 1135. Recruits

How to read the input ???
Posted by Nikolay Marinov 3 Dec 2001 13:19
I use

  char c;
  while ( (c = getc (stdin)) != EOF )
     {
        if (c == '<' || c == '>')
           ....
        if (c == '<')
           ....
     }

What I must use, to read the input corectly.