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 1148. Building Towers

Who can help me ?
Posted by ChenShi @ZSU 19 Apr 2004 06:32
What is the answer when N=32767,H=60,M=10 ?
My answer is 465476805623937394, is it correct?

I used unsigned long long type, but got TLE. It's very strange.
I got WA when I used long double type.
Re: Who can help me ?
Posted by Grebnov Ilya[ISPU] 21 Apr 2004 00:13
The answer is correct. I also got WA when use Extended type, but got AC when change it to Int64.
Re: Who can help me ?
Posted by ChenShi @ZSU 22 Apr 2004 06:14
Thank you very much.
What's the C++ compiler here ?
Use __int64 type and "%I64d" specifier to read/write it.
Posted by Vladimir Yakovlev (USU) 22 Apr 2004 18:14
Re: Use __int64 type and "%I64d" specifier to read/write it.
Posted by ChenShi @ZSU 28 Apr 2004 09:45
Thank you! AC now :)