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 13:22GraceGraceError
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 13:2200000Error: expected "53685364265005065 ", got "53685364264979465 "
2May 31, 2024 13:225,29468,875,87241,942,0001,997,0002,392,064
3May 31, 2024 13:225,30563,789,63942,031,0002,001,0002,273,280
4May 31, 2024 13:225,30671,595,38942,035,0002,001,0002,273,280
5May 31, 2024 13:225,31071,676,89243,068,0001,001,0002,273,280
6May 31, 2024 13:225,31269,429,29443,088,0001,002,0002,273,280
7May 31, 2024 13:225,31566,882,04042,111,0002,005,0002,514,944
8May 31, 2024 13:225,32473,723,09942,178,0002,008,0002,396,160
9May 31, 2024 13:225,32573,439,72343,197,0001,004,0002,404,352
10May 31, 2024 13:225,32668,173,39142,195,0002,009,0002,273,280
11May 31, 2024 13:225,33472,028,15343,265,0001,006,0002,273,280
12May 31, 2024 13:225,33875,305,35243,296,0001,006,0002,273,280
13May 31, 2024 13:225,37271,008,86243,575,0001,013,0002,273,280
14May 31, 2024 13:225,535115,576,50545,943,61102,289,664
15May 31, 2024 13:225,536109,380,70745,945,73102,289,664
16May 31, 2024 13:225,536114,501,17345,949,37602,289,664
17May 31, 2024 13:215,538107,974,23845,962,24002,277,376
18May 31, 2024 13:215,544125,614,94446,013,64802,281,472
19May 31, 2024 13:215,544117,524,40046,015,37702,289,664
20May 31, 2024 13:215,546104,681,91946,028,41602,281,472
21May 31, 2024 13:215,589130,488,93746,386,98002,281,472
22May 31, 2024 13:215,687118,380,12647,205,03302,281,472