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 listJan 2, 2023 16:50Bernard TeoBernard TeoScore: 6,458Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:506,285115,553,97652,162,05002,277,376
2Jan 2, 2023 16:506,286124,916,30252,173,58402,277,376
3Jan 2, 2023 16:506,295113,368,77152,252,18602,277,376
4Jan 2, 2023 16:506,44576,644,28552,484,0001,009,0002,273,280
5Jan 2, 2023 16:506,44777,736,48152,501,0001,009,0002,404,352
6Jan 2, 2023 16:506,45579,911,54252,570,0001,010,0002,273,280
7Jan 2, 2023 16:506,45783,489,45552,585,0001,011,0002,273,280
8Jan 2, 2023 16:506,45879,072,06352,590,0001,011,0002,273,280
9Jan 2, 2023 16:506,46282,261,49153,635,00002,273,280
10Jan 2, 2023 16:506,46480,253,79053,650,00002,392,064
11Jan 2, 2023 16:506,46582,529,54852,647,0001,012,0002,273,280
12Jan 2, 2023 16:506,46579,713,86152,649,0001,012,0002,400,256
13Jan 2, 2023 16:506,46684,880,55752,656,0001,012,0002,396,160
14Jan 2, 2023 16:506,48079,767,64352,788,000996,0002,400,256
15Jan 2, 2023 16:506,48381,305,79351,818,0001,993,0002,273,280