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 1037. Memory Management

Very strange behavior
Posted by Amirbekov Artem[Ivanovo SPU] 22 Oct 2011 03:49
The first time I had submitted my solution I got WA 1
After I changed the main line where first number and symbol are read from
   while (scanf("%d %s", &time, &s) != EOF)
to:
   while (cin >> time >> s)

I got AC. What's the difference?