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 listSep 5, 2021 11:39Andrey TsvetkovAndrey TsvetkovScore: 42,949Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2021 11:3942,916420,021,613356,205,66602,265,088
2Sep 5, 2021 11:5242,925420,511,770356,274,39902,269,184
3Sep 5, 2021 11:5242,926427,111,640356,288,30102,277,376
4Sep 5, 2021 11:3942,949417,094,537356,472,77602,260,992
5Sep 5, 2021 11:3942,954427,982,010356,521,98202,273,280
6Sep 5, 2021 11:5242,970430,858,939356,653,91702,281,472