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 listJan 11, 2023 17:12Kevin HeaveyKevin HeaveyScore: 218,361Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2023 17:12217,5369,407,993,5491,805,551,16702,187,264
2Jan 11, 2023 17:12217,6609,739,583,9491,806,577,88102,297,856
3Jan 11, 2023 17:12217,83610,232,497,0131,808,039,07502,220,032
4Jan 11, 2023 17:12218,3619,882,671,6361,812,393,82202,224,128
5Jan 11, 2023 17:12218,7389,285,009,4361,815,529,06702,187,264
6Jan 11, 2023 17:12219,2579,304,496,1201,819,829,93902,273,280