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 listNov 26, 2024 19:46MatthiasMatthiasScore: 8,780Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 26, 2024 19:468,66397,760,61069,903,0001,997,0002,289,664
2Nov 26, 2024 19:468,66693,923,64070,928,000998,0002,506,752
3Nov 26, 2024 19:468,68896,667,71471,106,0001,001,0002,289,664
4Nov 26, 2024 19:468,780101,438,83271,876,000998,0002,260,992
5Nov 26, 2024 19:468,82394,309,15271,229,0002,006,0002,265,088
6Nov 26, 2024 19:468,832101,637,13971,300,0002,008,0002,289,664