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 listMay 6, 2024 21:47Joad NacerJoad NacerScore: 8,330Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2024 21:478,29593,608,13568,848,00002,273,280
2May 6, 2024 21:478,29993,340,68466,885,0001,996,0002,281,472
3May 6, 2024 21:478,29997,501,91766,885,0001,996,0002,281,472
4May 6, 2024 21:478,30196,687,57167,901,000998,0002,527,232
5May 6, 2024 21:478,30591,955,24066,937,0001,998,0002,265,088
6May 6, 2024 21:478,32092,811,57568,059,0001,000,0002,514,944
7May 6, 2024 21:478,32590,393,42168,100,0001,001,0002,281,472
8May 6, 2024 21:478,33092,679,83767,138,0002,004,0002,281,472
9May 6, 2024 21:478,33693,204,61167,187,0002,005,0002,281,472
10May 6, 2024 21:478,449123,805,25270,125,43302,277,376
11May 6, 2024 21:478,570132,912,76171,131,11102,273,280
12May 6, 2024 21:478,586150,888,08471,263,25902,269,184
13May 6, 2024 21:479,128102,007,13873,768,0001,993,0002,265,088
14May 6, 2024 21:479,14799,232,65773,923,0001,997,0002,269,184
15May 6, 2024 21:479,153104,241,40473,971,0001,999,0002,281,472