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 listApr 10, 2024 09:06Matt StuchlikMatt StuchlikScore: 22,172Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2024 09:0621,174247,264,179175,742,97802,289,664
2Apr 10, 2024 09:0621,191242,258,499175,885,58702,297,856
3Apr 10, 2024 09:0622,101247,073,210183,436,44202,285,568
4Apr 10, 2024 09:0622,136209,917,541181,732,0001,997,0002,269,184
5Apr 10, 2024 09:0622,142207,814,130181,779,0001,997,0002,285,568
6Apr 10, 2024 09:0622,145211,289,945181,807,0001,997,0002,285,568
7Apr 10, 2024 09:0622,172206,686,486182,028,0002,000,0002,285,568
8Apr 10, 2024 09:0622,190205,667,526183,177,0001,000,0002,285,568
9Apr 10, 2024 09:0622,192211,566,282182,191,0002,002,0002,273,280
10Apr 10, 2024 09:0622,205209,220,226183,298,0001,001,0002,277,376
11Apr 10, 2024 09:0622,428209,866,951185,156,0001,000,0002,269,184
12Apr 10, 2024 09:0622,816218,278,213187,371,0002,003,0002,277,376