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

Common Board

1014 W.A
Posted by longman cheng(@Killer team of ZJU) 5 Oct 2000 17:57
My solution works fine on my test cases,
what's wrong about this problem?
if the input is 1,which one is the correct output?
case 1: 1
case 2: 11
case 3: ?
Re: 1014 W.A
Posted by Dmitry S. Lyubshin 5 Oct 2000 18:06
The answer to your question is certainly "1" (I see no
ambiguity).
As far as I understand, the joke is in "print '-1'" instead
of "print ' 1'" (that is what my browser shows).
Also note that output for N=0 is not -1
P.S. Remember Pell's equation? :)
Re: 1014 W.A
Posted by longman cheng(@Killer team of ZJU) 5 Oct 2000 18:15
> The answer to your question is certainly "1" (I see no
> ambiguity).
> As far as I understand, the joke is in "print '-1'"
instead
> of "print ' 1'" (that is what my browser shows).
what do you mean "print '-1'?
in my browser,it shows "print '?'"

> Also note that output for N=0 is not -1
> P.S. Remember Pell's equation? :)
Re: 1014 W.A
Posted by longman cheng(@Killer team of ZJU) 5 Oct 2000 18:19
> The answer to your question is certainly "1" (I see no
> ambiguity).
> As far as I understand, the joke is in "print '-1'"
instead
> of "print ' 1'" (that is what my browser shows).
> Also note that output for N=0 is not -1
> P.S. Remember Pell's equation? :)
yes,i remember you,:-)
thanks for your help again.
Re: 1014 W.A
Posted by Dmitry S. Lyubshin 5 Oct 2000 18:21
> > As far as I understand, the joke is in "print '-1'"
> instead
> > of "print ' 1'" (that is what my browser shows).
> what do you mean "print '-1'?
> in my browser,it shows "print '?'

I don't think any program that prints something other than
MINUS ONE in case the required number does not exist will
ever be accepted.
Re: 1014 W.A
Posted by longman cheng(@Killer team of ZJU) 5 Oct 2000 18:27
> > > As far as I understand, the joke is in "print '-1'"
> > instead
> > > of "print ' 1'" (that is what my browser shows).
> > what do you mean "print '-1'?
> > in my browser,it shows "print '?'
>
> I don't think any program that prints something other than
> MINUS ONE in case the required number does not exist will
> ever be accepted.
Thanks lyubshin,i got accepted.
Re: 1014 W.A
Posted by longman cheng(@Killer team of ZJU) 5 Oct 2000 18:28
> > > As far as I understand, the joke is in "print '-1'"
> > instead
> > > of "print ' 1'" (that is what my browser shows).
> > what do you mean "print '-1'?
> > in my browser,it shows "print '?'
>
> I don't think any program that prints something other than
> MINUS ONE in case the required number does not exist will
> ever be accepted.
I got accepted.
thanks lyubshin again...
"-1 or ?" thank you so much
Posted by tjq(killer of zju) 5 Oct 2000 19:51
in my brower , it says you should print '?' if such a
number doesn't exist, so I got wrong answer again and again,
then I see your message, and changed language in browser,
now it's print -1,

How should I hate the Internet Explorer, Though I always
use it!