Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listFeb 18, 2022 13:12DanilaDanilaScore: 442,816Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2022 13:12441,4843,734,658,5483,664,320,73802,187,264
2Feb 18, 2022 12:01441,6643,750,744,0513,665,809,12902,314,240
3Feb 18, 2022 12:01441,7903,729,262,6753,666,854,73602,191,360
4Feb 18, 2022 12:01442,8163,736,571,4563,675,373,84702,195,456
5Feb 18, 2022 13:12442,8483,736,886,8393,675,638,79202,195,456
6Feb 18, 2022 13:12443,6033,753,560,2053,681,902,12802,203,648