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 1217. Unlucky Tickets

Admins, look at this bug!
Posted by Yaroslavtsev Grigory 6 Sep 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!
Posted by Vladimir Yakovlev (USU) 6 Sep 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!
Posted by Yaroslavtsev Grigory 7 Sep 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!
Posted by Stupnikov Pavel 9 Sep 2004 22:46
Hm. Nobody prevents you to write on C :)
Re: Hi!
Posted by Yaroslavtsev Grigory 10 Sep 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 (-)
Posted by Dmitry 'Diman_YES' Kovalioff 10 Sep 2004 20:20
Re: Every problem can be solved with Pascal - I use only Pascal in my programs (-)
Posted by Yaroslavtsev Grigory 11 Sep 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 ;) (-)
Posted by Dmitry 'Diman_YES' Kovalioff 11 Sep 2004 09:40
I had the same problem...
Posted by Jiang Xu 18 Aug 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++
Posted by Jiang Xu 18 Aug 2005 22:34