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

Обсуждение задачи 1014. Произведение цифр

Страницы: 1 2 Следующая
Test #8
Послано Igor Gomes 8 окт 2004 10:55

My code is ok all tests before #8, but I've WA on #8... Anything that I don't see?

Thanks
Re: Test #8
Послано Airinei Adrian 29 июл 2005 01:06
Can anyone help me? I have the same problem and I know the code is ok, I checked it 100 times

Edited by author 29.07.2005 01:06
Re: Test #8
Послано Valentine 31 июл 2005 03:41
I also had WA on test#8(now I have AC). I don't know this test, but look:
 N = 362880
Right Q is 2578899.
You see: all numbers(digits)in Q must be sorted:
2<=5<=7<=8<=8<=9<=9 - it's condition for minimal Q, but
you must surch begining from 9
Re: Test #8
Послано Airinei Adrian 31 июл 2005 21:39
in my program the digits are sorted. for your example my answer is also 2578899
Re: Test #8
Послано Yoyo 2 авг 2005 22:53
correct answer for 0 is 10.
maybe this fact help you.
Re: Test #8
Послано ali ahmad 24 ноя 2005 21:19
May be this helps. If input is 12 output should be 26 not 34 .
Re: Test #8
Послано Torax [LNU] 30 ноя 2005 04:40
It is something strange...
My program outputs 10, when input is 0, in your examples: 12 -> 26, not 34, but I have WA#8, why????? Program is correct, maybe tests are wrong???
Re: Test #8
Послано Abhay 3 дек 2005 18:22
Yes i am having the exact same problem... considered all test cases and am getting the write answers in ascending order but test#8 is giving WA

Edited by author 03.12.2005 18:23

Edited by author 03.12.2005 18:23
Re: Test #8
Послано Burunduk1 3 дек 2005 19:44
I think tests are OK.
If you still need some help send me your code
to sk1@hotbox.ru
Try this~!
Послано Maciej Rygielski 3 апр 2006 17:21
try input 1000 000 000
Re: Try this~!
Послано Torry 5 апр 2006 14:14
I have this problem too!!!
All test, what i see is correct;
I use unsigned long;
May be it consist false;
What I doing wrong?

Edited by author 05.04.2006 14:23
Re: Try this~!
Послано KAV 7 апр 2006 13:18
How about N = 13 ? ;)
Re: Try this~!
Послано sedefcho 4 июл 2006 19:42
test

Edited by author 04.07.2006 19:44
Re: Test #8
Послано Liu Cong 24 фев 2007 17:02
try string,or int64
Re: Test #8
Послано reason supreme 4 янв 2008 16:39
my God..my alog is WRONG.
thx!
Re: Test #8
Послано Madhav 13 июн 2008 19:42
Try n=1234.Output is -1.
Re: Test #8
Послано Timofey Koolin 15 ноя 2008 03:46
Liu Cong писал(a) 24 февраля 2007 17:02
try string,or int64
if I using __int64 I have overflow too. In this problem must use only string for result.
Re: Test #8
Послано mss 12 мар 2009 00:38
I used recursive algorithm. (C++)
result and local variables in function must be __int64(long long)
In other cases you'll get an overflow
Usage of string not are obligatory

Test#8 is:

N=1 000 000 000
Q->555555555888

for examle with local or result variables of type unsigned you'll get
Q->1504774704

Sorry for my English :)
Re: Test #8
Послано Shu Konstantin Preslavski 22 апр 2010 04:46
I don't know if what is exactlly the test but the answer is something like -1 or 26 ;D It works for me there after fixing that... ;)
Re: Test #8
Послано Andres 3 окт 2010 02:25
Yep... problem in java was using int instead of long.
Страницы: 1 2 Следующая