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 30, 2024 02:43Joad NacerJoad NacerScore: 4,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2024 02:424,32056,381,74133,806,0002,048,0002,297,856
2Nov 30, 2024 02:434,33854,704,59935,007,0001,000,0002,306,048
3Nov 30, 2024 02:424,36158,095,90433,181,0003,016,0002,379,776
4Nov 30, 2024 02:434,37054,981,87535,265,0001,007,0002,306,048
5Nov 30, 2024 02:434,38956,343,47935,418,0001,011,0002,293,760
6Nov 30, 2024 02:434,39457,352,42535,455,0001,013,0002,301,952
7Nov 30, 2024 02:424,39962,425,50536,515,00002,531,328
8Nov 30, 2024 02:434,39960,708,94736,513,00002,531,328
9Nov 30, 2024 02:424,42161,679,64034,660,0002,038,0002,301,952
10Nov 30, 2024 02:434,44163,461,54536,858,00002,306,048
11Nov 30, 2024 02:424,45162,581,95935,942,000998,0002,269,184
12Nov 30, 2024 02:424,47060,349,56536,103,0001,002,0002,269,184
13Nov 30, 2024 02:434,51259,901,14536,436,0001,012,0002,301,952
14Nov 30, 2024 02:434,55864,824,88736,837,000995,0002,531,328
15Nov 30, 2024 02:434,62861,793,51636,388,0002,021,0002,531,328
16Nov 30, 2024 02:434,65970,550,46136,636,0002,035,0002,289,664
17Nov 30, 2024 02:434,76262,489,60438,508,0001,013,0002,531,328
18Nov 30, 2024 02:434,86963,123,31337,380,0003,030,0002,392,064