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 28, 2024 14:47GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2024 14:4700000Error: expected "53681991888080048 ", got "53681991232720048 "
2May 28, 2024 14:476,162116,510,82051,143,83802,265,088
3May 28, 2024 14:476,166118,113,26851,174,11602,273,280
4May 28, 2024 14:476,166120,312,33151,179,70602,273,280
5May 28, 2024 14:486,168120,543,90251,197,44302,269,184
6May 28, 2024 14:476,169110,364,11851,206,67402,269,184
7May 28, 2024 14:476,170114,783,65551,215,06002,277,376
8May 28, 2024 14:486,175154,787,86451,250,02402,277,376
9May 28, 2024 14:486,181122,243,65351,303,63602,281,472
10May 28, 2024 14:476,197116,591,26451,434,19702,273,280