ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Общий форум

1014 W.A
Послано longman cheng(@Killer team of ZJU) 5 окт 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
Послано Dmitry S. Lyubshin 5 окт 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
Послано longman cheng(@Killer team of ZJU) 5 окт 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
Послано longman cheng(@Killer team of ZJU) 5 окт 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
Послано Dmitry S. Lyubshin 5 окт 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
Послано longman cheng(@Killer team of ZJU) 5 окт 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
Послано longman cheng(@Killer team of ZJU) 5 окт 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
Послано tjq(killer of zju) 5 окт 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!