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 listMay 6, 2024 14:48Andrei LuzanAndrei LuzanScore: 91,137Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2024 13:5491,053826,915,991755,738,51702,269,184
2May 6, 2024 14:4891,098824,881,798756,114,51902,248,704
3May 6, 2024 13:5491,106819,933,882756,182,10902,260,992
4May 6, 2024 13:5491,137822,319,364756,438,41302,260,992
5May 6, 2024 14:4891,718829,301,277761,261,31302,240,512
6May 6, 2024 14:4891,773826,089,025761,715,20602,240,512