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 29, 2024 12:53BenBenScore: 44,756Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 29, 2024 12:4844,741436,273,557371,352,83302,285,568
2Jul 29, 2024 12:4844,746438,595,660371,390,87202,289,664
3Jul 29, 2024 12:5344,750447,863,820371,427,72002,293,760
4Jul 29, 2024 12:5344,756438,831,578371,475,96102,293,760
5Jul 29, 2024 12:5344,771429,677,808371,601,05002,293,760
6Jul 29, 2024 12:4844,783449,989,323371,700,99102,297,856