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 30, 2022 16:12Yuriy LyfenkoYuriy LyfenkoScore: 7,652Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 16:127,530128,517,55662,502,36002,220,032
2Jul 30, 2022 16:127,652126,106,29263,511,09502,228,224
3Jul 30, 2022 16:127,689135,211,43763,821,49802,224,128