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 2, 2023 15:38UdbhavUdbhavScore: 44,717Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 15:3944,245442,660,986367,233,06202,256,896
2Jan 2, 2023 15:3944,253443,834,759367,300,68402,228,224
3Jan 2, 2023 15:3844,276435,071,761367,491,99402,220,032
4Jan 2, 2023 15:3844,717554,597,209371,150,73402,228,224
5Jan 2, 2023 15:3844,831435,484,855372,100,70202,220,032
6Jan 2, 2023 15:3944,863426,098,931372,360,02202,232,320