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 listJan 25, 2024 12:13AnSaAnSaScore: 57,493Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 25, 2024 12:1355,258495,007,738458,641,09202,240,512
2Jan 25, 2024 12:1355,262495,754,632458,670,66202,232,320
3Jan 25, 2024 12:1355,287508,875,297458,884,69802,240,512
4Jan 25, 2024 12:1357,493524,350,396477,194,25802,236,416
5Jan 25, 2024 12:1357,494524,626,009477,198,74002,240,512
6Jan 25, 2024 12:1357,537523,613,214477,560,26602,236,416