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 listJul 18, 2021 22:49Andrey TsvetkovAndrey TsvetkovScore: 51,891Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2021 22:4950,941490,000,115422,806,30602,215,936
2Jul 18, 2021 22:4951,819498,130,799430,098,91102,211,840
3Jul 18, 2021 22:4951,839488,882,189430,264,59602,211,840
4Jul 18, 2021 22:4951,891493,030,705430,694,43402,211,840
5Jul 18, 2021 22:4952,014489,640,920431,716,33402,220,032
6Jul 18, 2021 22:4952,015510,293,444431,723,63002,207,744