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 1242. Werewolf

a hint and a question
Posted by math404_3140 17 Aug 2006 15:11
I think this problem can be solved easily by using DFS algo. But there's sth I wantwd to ask. if our program is reading from the standard input, Can we use eof(f) in paskal? what should we do then? is it OK to use ASSIGN procedure for a file which has been made beore? I think it takes CRASH(ACCES VIOLATION) error. Is there anyone who can help me on the spot?!!
Re: a hint and a question
Posted by vlyubin 1 Feb 2012 07:46
I had the same problem, because I read char and if it was 'B', I go to next stage. It was always OK except this case:

100
BLOOD
1
2

I didn't eat the newline after 100, however I always did after numbers that went after it. Anyway - this is why test 4 is special. Hope that helps :-D