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 listNov 14, 2024 04:05zielajzielajScore: 4,776Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 14, 2024 04:054,12261,249,97232,200,0002,012,0002,519,040
2Nov 14, 2024 04:054,13857,353,06033,338,0001,010,0002,367,488
3Nov 14, 2024 04:054,45365,145,95535,963,000998,0002,514,944
4Nov 14, 2024 04:054,77665,750,60838,622,0001,016,0002,383,872
5Nov 14, 2024 04:054,77861,247,34839,661,00002,387,968
6Nov 14, 2024 04:054,81063,758,39737,931,0001,996,0002,531,328