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 listAug 19, 2024 16:26Casper BelierCasper BelierScore: 1,647,006Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 19, 2024 16:261,646,19013,747,552,81113,663,373,75702,260,992
2Aug 19, 2024 16:261,647,00613,724,533,52013,670,146,54202,387,968
3Aug 19, 2024 16:261,647,90813,734,758,56013,677,635,85802,269,184