ENG  RUSTimus Online Judge
Online Judge
Online contests
About Online Judge
Frequently asked questions
Site news
Problem set
Submit solution
Judge status
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
back to board

Discussion of Problem 1206. Sum of Digits of the Sum of Numbers

long arithmetic
Posted by jagatsastry 19 Nov 2007 02:01
How do we perform long arithmetic calculations in c++? Is there any builtin library with g++? I'd googled for it only to find all external(out of standard g++) libraries. If anyone has written a class for this purpose, please share the code here or mail it to me. Thanks.
Re: long arithmetic
Posted by denton 17 Feb 2008 18:46
No, such library doesn't exist. You've got three options:
1. Write it yourself.
2. Use Java, if you know it well.
3. Say «Well, it is definitely not my problem».

I would recommend option number two ;)
A bit slow (one decimal digit per one array element), but can help (+)
Posted by Orlangur [KNU] 18 Feb 2008 23:25