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 26, 2023 21:31Vitaliy F.Vitaliy F.Score: 242,172Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 26, 2023 21:31241,8472,082,667,7452,007,332,66602,187,264
2Dec 26, 2023 21:32241,9252,076,829,9412,007,977,94802,187,264
3Dec 26, 2023 21:32241,9632,074,023,8512,008,292,30602,187,264
4Dec 26, 2023 21:31242,1722,084,696,0072,010,023,61702,187,264
5Dec 26, 2023 21:31242,3672,065,061,0932,011,644,04802,183,168
6Dec 26, 2023 21:32242,7092,069,302,7212,014,482,43402,191,360