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 27, 2022 18:43@AirM4rx@AirM4rxScore: 140,711Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2022 18:42140,3471,233,212,9881,164,876,65602,281,472
2Dec 27, 2022 18:42140,3651,229,931,6341,165,032,14202,215,936
3Dec 27, 2022 18:42140,4781,231,041,8031,165,971,14202,215,936
4Dec 27, 2022 18:43140,7111,225,812,0881,167,900,47902,203,648
5Dec 27, 2022 18:43140,7221,226,837,3471,167,993,29602,203,648
6Dec 27, 2022 18:43140,7621,226,488,1821,168,320,50802,207,744