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 3, 2023 21:28Hal FHal FScore: 6,808Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 21:286,61279,096,72951,887,0002,993,0002,285,568
2Jan 3, 2023 21:286,63980,584,02053,099,0002,003,0002,285,568
3Jan 3, 2023 21:286,66884,712,10552,325,0003,018,0002,433,024
4Jan 3, 2023 21:286,67881,132,11052,401,0003,023,0002,285,568
5Jan 3, 2023 21:286,68478,174,83553,458,0002,017,0002,285,568
6Jan 3, 2023 21:286,72384,773,62355,800,00002,285,568
7Jan 3, 2023 21:286,76381,245,04953,130,0003,007,0002,465,792
8Jan 3, 2023 21:286,80884,101,08255,500,0001,009,0002,285,568
9Jan 3, 2023 21:286,82085,500,14755,592,0001,010,0002,285,568
10Jan 3, 2023 21:286,91584,772,32054,371,0003,020,0002,285,568
11Jan 3, 2023 21:287,05685,197,29456,548,0002,019,0002,285,568
12Jan 3, 2023 21:287,453132,240,72861,859,69302,220,032
13Jan 3, 2023 21:287,701135,814,95563,919,01102,215,936
14Jan 3, 2023 21:289,789112,496,52280,244,0001,003,0002,285,568
15Jan 3, 2023 21:2810,495155,095,61187,111,76002,215,936