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 21, 2023 16:29Kevin HeaveyKevin HeaveyScore: 66,395Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2023 16:3066,330612,752,544550,543,13202,228,224
2Jan 21, 2023 16:3066,333605,543,058550,567,13702,224,128
3Jan 21, 2023 16:3066,362625,800,254550,803,48002,232,320
4Jan 21, 2023 16:2966,395613,270,911551,080,72702,256,896
5Jan 21, 2023 16:2966,416613,032,333551,256,11602,224,128
6Jan 21, 2023 16:2966,457613,099,586551,591,72002,236,416