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 listOct 12, 2021 11:05tirochkintirochkinScore: 131,265Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2021 11:05131,0251,146,999,5991,087,507,12902,293,760
2Oct 12, 2021 11:05131,2651,148,029,9091,089,502,70002,289,664
3Oct 12, 2021 11:05131,7721,147,805,8281,093,708,57202,289,664