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 1002. Phone Numbers

Could anyone explain the input, please
Posted by Alexander Kuptsov 25 Jun 2014 14:29
Hello everyone,

The problem description says that first you enter the phone number, then the number of words in the dictionary, then the dictionary itself, then -1.

However, in the input example the first test looks like this:

7325189087
5
it
your
reality
real
our

And then the second input begins.

My question: why is there no -1 in the first example?
Re: Could anyone explain the input, please
Posted by Berzeger 12 Aug 2014 04:42
-1 ends the whole input, ie. there will be no more phone numbers after -1.