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 listDec 29, 2022 10:33Bernard TeoBernard TeoScore: 6,467Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 10:336,281111,238,55452,132,71902,281,472
2Dec 29, 2022 10:336,283118,575,67652,150,61902,277,376
3Dec 29, 2022 10:336,287110,619,59652,182,43602,281,472
4Dec 29, 2022 10:336,45182,516,99553,547,00002,408,448
5Dec 29, 2022 10:336,45173,554,75453,545,00002,400,256
6Dec 29, 2022 10:336,46179,672,93752,617,0001,011,0002,273,280
7Dec 29, 2022 10:336,46481,052,64552,638,0001,012,0002,404,352
8Dec 29, 2022 10:336,46782,727,41652,662,0001,012,0002,400,256
9Dec 29, 2022 10:336,47181,714,81751,723,0001,989,0002,273,280
10Dec 29, 2022 10:336,48077,944,62752,787,000995,0002,408,448
11Dec 29, 2022 10:336,48278,999,60053,803,00002,273,280
12Dec 29, 2022 10:336,48281,346,84852,807,000996,0002,273,280
13Dec 29, 2022 10:336,48379,512,35451,813,0001,992,0002,273,280
14Dec 29, 2022 10:336,48384,610,55052,815,000996,0002,273,280
15Dec 29, 2022 10:336,48479,054,71252,825,000996,0002,519,040