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 31, 2024 08:33GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 08:3300000Error: expected "53687292089531607 ", got "53687375085782323 "
2May 31, 2024 08:3300000Error: expected "53682316642274801 ", got "53682316642018801 "
3May 31, 2024 08:3300000Error: expected "53691193659798063 ", got "53691193659541807 "
4May 31, 2024 08:335,62476,045,86345,665,0001,014,0002,273,280
5May 31, 2024 08:335,64770,537,24445,870,000997,0002,273,280
6May 31, 2024 08:335,66369,108,79345,007,0002,000,0002,400,256
7May 31, 2024 08:335,67075,732,26446,061,0001,001,0002,273,280
8May 31, 2024 08:335,67771,711,27745,112,0002,005,0002,273,280
9May 31, 2024 08:335,68070,174,55846,141,0001,003,0002,273,280
10May 31, 2024 08:335,68472,930,64445,168,0002,007,0002,400,256
11May 31, 2024 08:335,68670,757,57146,192,0001,004,0002,400,256
12May 31, 2024 08:335,68868,501,17246,210,0001,004,0002,273,280
13May 31, 2024 08:335,69169,696,10945,229,0002,010,0002,273,280
14May 31, 2024 08:335,70073,102,07847,312,00002,404,352
15May 31, 2024 08:335,70868,662,98946,370,0001,008,0002,273,280
16May 31, 2024 08:335,873110,677,40448,747,67102,277,376
17May 31, 2024 08:335,876111,105,11248,773,24602,285,568
18May 31, 2024 08:335,877119,894,38248,777,64702,281,472
19May 31, 2024 08:335,877110,601,70748,782,66302,289,664
20May 31, 2024 08:335,878104,157,91148,791,32402,281,472
21May 31, 2024 08:335,882101,863,67648,817,36602,285,568
22May 31, 2024 08:335,887117,354,35048,863,04902,281,472
23May 31, 2024 08:335,891115,062,91748,892,00402,277,376
24May 31, 2024 08:335,892116,583,16048,901,38402,293,760