|
|
вернуться в форумIs input conteined only one line? Re: Is input conteined only one line? No the input can be split between several lines. My method is to read it using getchar and to use two flags sequence_start and word_start. Good luck. I mean input can really be split into several lines > Re:Re: Is input conteined only one line? > No the input can be split between several lines. My method > is to read it using getchar and to use two flags > sequence_start and word_start. > Good luck. > I can't understand what exactly you mean, but can you tell me what I should do if I use Pascal? Can I use EOF? I am not sure too, but I think check for eof will work. Anyhow, just try it at home! You can make your sample input, You can also simulate judge by running your_program.exe < your_input.txt Yes, but if I use eof I must press Clt+Z at the end of the input, if I don't the program will continue to read the input > |
|
|