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 listJul 5, 2021 16:20Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2021 16:1900000Error: expected "53682062214196009 ", got "53682062213940109 "
2Jul 5, 2021 16:4000000Error: expected "53680504661865290 ", got "53680504661609390 "
3Jul 5, 2021 16:2058,569548,189,194486,119,85702,220,032
4Jul 5, 2021 16:2358,578540,243,586486,194,70202,203,648
5Jul 5, 2021 16:2358,611540,585,605486,471,98602,215,936
6Jul 5, 2021 16:2058,615542,178,522486,502,77302,220,032
7Jul 5, 2021 16:2358,615548,663,457486,501,07802,220,032
8Jul 5, 2021 16:2058,631539,957,958486,636,30402,211,840