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 7, 2021 20:59Andrey TsvetkovAndrey TsvetkovScore: 33,549Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 7, 2021 21:0233,531335,760,992278,303,86602,236,416
2Sep 7, 2021 21:0233,533335,832,889278,320,05602,232,320
3Sep 7, 2021 20:5933,535350,795,239278,341,86202,244,608
4Sep 7, 2021 20:5933,549337,032,699278,460,21802,236,416
5Sep 7, 2021 20:5933,556342,805,017278,518,40002,228,224
6Sep 7, 2021 21:0233,558343,096,275278,530,25202,232,320