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 1, 2023 18:17Jack FrigaardJack FrigaardScore: 4,850Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 18:174,73662,604,36636,284,0003,023,0002,514,944
2Jan 1, 2023 18:174,73865,029,78536,301,0003,025,0002,457,600
3Jan 1, 2023 18:174,74261,310,12538,349,0001,009,0002,449,408
4Jan 1, 2023 18:174,74360,650,02537,346,0002,018,0002,306,048
5Jan 1, 2023 18:174,77567,903,19437,598,0002,032,0002,453,504
6Jan 1, 2023 18:174,83867,312,21837,142,0003,011,0002,514,944
7Jan 1, 2023 18:174,84666,503,54737,205,0003,016,0002,445,312
8Jan 1, 2023 18:174,85063,591,72437,238,0003,019,0002,453,504
9Jan 1, 2023 18:174,86365,114,41737,340,0003,027,0002,519,040
10Jan 1, 2023 18:174,87462,325,17638,431,0002,022,0002,445,312
11Jan 1, 2023 18:174,884118,535,64340,535,25602,203,648
12Jan 1, 2023 18:174,89070,360,35338,554,0002,029,0002,519,040
13Jan 1, 2023 18:174,95570,050,10039,122,0002,006,0002,519,040
14Jan 1, 2023 18:174,987110,758,86641,392,39002,203,648
15Jan 1, 2023 18:175,018103,551,38741,650,11102,195,456