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 17:14Bernard TeoBernard TeoScore: 6,311Success
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 17:146,28376,080,34051,145,0001,002,0002,400,256
2Jan 2, 2023 17:146,29880,693,96950,261,0002,010,0002,273,280
3Jan 2, 2023 17:146,29875,808,61250,264,0002,010,0002,408,448
4Jan 2, 2023 17:146,30376,724,06351,324,000987,0002,273,280
5Jan 2, 2023 17:146,30373,292,94950,303,0002,012,0002,400,256
6Jan 2, 2023 17:146,30775,045,94951,339,0001,006,0002,400,256
7Jan 2, 2023 17:146,31179,293,30551,371,0001,007,0002,273,280
8Jan 2, 2023 17:146,31173,489,23351,371,0001,007,0002,392,064
9Jan 2, 2023 17:146,31173,254,61751,373,0001,007,0002,265,088
10Jan 2, 2023 17:146,31375,533,77852,397,00002,400,256
11Jan 2, 2023 17:146,31474,194,25651,398,0001,007,0002,273,280
12Jan 2, 2023 17:146,32076,005,55151,450,0001,008,0002,273,280
13Jan 2, 2023 17:146,427106,112,19753,344,38802,289,664
14Jan 2, 2023 17:146,433118,530,62653,394,75702,285,568
15Jan 2, 2023 17:146,451116,782,21953,542,74202,297,856