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 3, 2023 03:43Ali Eren ÖztürkAli Eren ÖztürkScore: 355,711Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 03:43353,8273,005,142,7592,936,765,25202,199,552
2Jul 3, 2023 03:43355,7113,012,130,1332,952,401,65702,191,360
3Jul 3, 2023 03:43356,1313,030,114,2012,955,884,84102,191,360