Admins, look at this bug!
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!
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!
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!
Hm. Nobody prevents you to write on C :)
Re: Hi!
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 (-)
Re: Every problem can be solved with Pascal - I use only Pascal in my programs (-)
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 ;) (-)
I had the same problem...
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++