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

Обсуждение задачи 1217. Unlucky Tickets

Admins, look at this bug!
Послано Yaroslavtsev Grigory 6 сен 2004 19:17
My program got WA (probably on test 10, I don't remember for certain). I was using comp type in Pascal, I posted my answers for n = 18 and n = 20 in forum, and people said they are correct. Then I wrote a program that used my answers as constants and got AC. I think that something is wrong with comp type. Probably because of your compiler. Please, try to fix it.
It's not a bug it's a feature!
Послано Vladimir Yakovlev (USU) 6 сен 2004 21:47
Both FreePascal and Delphi do not write all 19 digits of comp type. But Delphi writes 18 digits while FreePascal writes only 15 digits.
Re: It's not a bug it's a feature!
Послано Yaroslavtsev Grigory 7 сен 2004 16:43
Thank you! But it is a little bit unfair comparing with C, as it is with 373kb of memory, that is counted by default for all programs using Pascal.
Hi!
Послано Stupnikov Pavel 9 сен 2004 22:46
Hm. Nobody prevents you to write on C :)
Re: Hi!
Послано Yaroslavtsev Grigory 10 сен 2004 13:55
Hi! It's alright, so I'm studying C now, because problems like 1100 are rather difficult to solve on Pascal, but are really simple to solve using C.
Every problem can be solved with Pascal - I use only Pascal in my programs (-)
Послано Dmitry 'Diman_YES' Kovalioff 10 сен 2004 20:20
Re: Every problem can be solved with Pascal - I use only Pascal in my programs (-)
Послано Yaroslavtsev Grigory 11 сен 2004 00:47
Yes, Pascal - rulezzz. But problem 1217 is the only one that has two-digit amount of submissions in my stats, so it doesn't look straight and pretty anymore :)
My program is 0.015 sec, no additional memory used - just precalc fake ;) (-)
Послано Dmitry 'Diman_YES' Kovalioff 11 сен 2004 09:40
I had the same problem...
Послано Jiang Xu 18 авг 2005 22:33
When I submited the whole program, I got WA on test 6.. Then I  submited only the constants and got AC... :-/
and I was using long long in C++
Послано Jiang Xu 18 авг 2005 22:34