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 1591. Abstract Thinking

c++ must die, pascal forever (+)
It's enough the pascal's extended type to solve this problem.
But the C++'s double type has only 15 digits :'(

Edited by author 16.11.2007 01:58
Re: c++ must die, pascal forever (+)
Posted by Romko [Lviv NU] 18 Nov 2007 16:36
Use long double!
Re: c++ must die, pascal forever (+)
Posted by AlexF [USTU Frogs] 18 Nov 2007 17:40
I think it's enough int64
Re: c++ must die, pascal forever (+)
Posted by KIRILL(ArcSTUpid coder:) 18 Nov 2007 18:29
I agree with topic), but
i think it depends on compiler

VS help says that long double equals to double and have
15 digits, but actually can store up to 18

strange..
Re: c++ must die, pascal forever (+)
Posted by Alias (Alexander Prudaev) 20 Nov 2007 09:57
Int64 is enougth
c++ must die, pascal forever (+)
Posted by Ivanov Alexander 20 Nov 2007 16:34
Pascal - это наше всё...
Re: c++ must die, pascal forever (+)
Posted by Desperados[KhAI] >> Starov_Lesha 8 Jul 2008 11:55
If you can't normaly solve the problem, just agree with it.
C++ - the best! Pascal - already died.
Re: c++ must die, pascal forever (+)
Posted by Denis Koshman 20 Jul 2008 17:10
gcc has 10 bytes for long double while VC long double is 8 bytes long. Anyway, __int64 can hold up to 18 digits. And keep it unsigned :)