UVa 424

From Algorithmist
Jump to navigation Jump to search

424 - Integer Inquiry[edit]

Summary[edit]

A straightforward BigNum problem which requires a program to compute the sum of given positive integers.

Explanation[edit]

Use a character array or string data type to store the given integers. Implement your own addition operation on the array/string and print the result. Alternatively, you can use a suitable data type provided with the language you're using (such as BigInteger in java, GMP in C). Refer the BigNum article for more details.

Input[edit]

135484613546846131684684
156481213215884512121
211212
878751351687654351421
0

Output[edit]

136519846111749670759438

Solutions[edit]