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 21, 2021 14:07Anton KrylovAnton KrylovScore: 342,570Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 14:07336,8392,874,090,2322,795,764,47202,314,240
2Sep 21, 2021 14:07342,5702,927,832,6762,843,334,57702,310,144
3Sep 21, 2021 14:07342,6602,906,413,2892,844,076,69702,183,168