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 listDec 28, 2022 19:49EdgarEdgarScore: 52,632Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 02:2852,347491,289,732434,480,32202,224,128
2Dec 28, 2022 19:4952,501498,744,887435,758,73202,232,320
3Dec 30, 2022 02:2852,600497,995,763436,582,58602,228,224
4Dec 28, 2022 19:4952,632494,456,453436,847,80602,220,032
5Dec 28, 2022 19:4952,730499,246,244437,657,93402,228,224
6Dec 30, 2022 02:2852,955512,341,877439,530,04202,211,840