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 listJun 30, 2021 01:44xxScore: 62,465Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2021 21:0761,866580,990,419513,488,29302,289,664
2Jun 29, 2021 21:0762,405583,448,690517,958,22502,277,376
3Jun 30, 2021 01:4462,424577,765,713518,115,51302,293,760
4Jun 30, 2021 01:4462,465585,960,452518,458,45302,293,760
5Jun 29, 2021 21:0762,690585,940,153520,324,28802,277,376
6Jun 30, 2021 01:4462,876594,611,285521,872,28002,273,280