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 8, 2023 15:11Robert BurkeRobert BurkeScore: 7,952Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2023 15:117,706128,559,19563,960,40302,289,664
2Nov 8, 2023 15:117,714125,913,87864,026,46402,289,664
3Nov 8, 2023 15:117,743143,351,55364,264,33802,289,664
4Nov 8, 2023 15:117,89288,608,27164,497,0001,007,0002,289,664
5Nov 8, 2023 15:117,92893,789,53664,804,000996,0002,289,664
6Nov 8, 2023 15:117,93291,261,75465,838,00002,273,280
7Nov 8, 2023 15:117,93591,883,60063,867,0001,995,0002,281,472
8Nov 8, 2023 15:117,95288,897,06764,002,0002,000,0002,289,664
9Nov 8, 2023 15:117,95992,772,26764,055,0002,001,0002,289,664
10Nov 8, 2023 15:117,96990,463,87164,141,0002,004,0002,289,664
11Nov 8, 2023 15:117,97290,619,16965,166,0001,002,0002,269,184
12Nov 8, 2023 15:117,97291,475,38866,165,00002,289,664
13Nov 8, 2023 15:117,97489,826,75764,182,0002,005,0002,273,280
14Nov 8, 2023 15:117,977100,956,12565,208,0001,003,0002,289,664
15Nov 8, 2023 15:119,03299,359,19172,964,0001,999,0002,289,664