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 listAug 31, 2023 02:36matsuoka-601matsuoka-601Score: 7,847Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2023 02:367,56693,925,98962,794,00002,420,736
2Aug 31, 2023 02:367,56791,502,66460,812,0001,993,0002,510,848
3Aug 31, 2023 02:367,59785,838,98262,052,0001,000,0002,416,640
4Aug 31, 2023 02:367,79393,646,22063,673,0001,010,0002,416,640
5Aug 31, 2023 02:367,81985,977,24262,903,0001,996,0002,412,544
6Aug 31, 2023 02:367,83287,320,30362,002,0003,000,0002,514,944
7Aug 31, 2023 02:367,84688,515,54663,117,0002,003,0002,514,944
8Aug 31, 2023 02:367,84787,573,02262,121,0003,005,0002,416,640
9Aug 31, 2023 02:367,87388,246,31963,339,0002,010,0002,400,256
10Aug 31, 2023 02:367,87986,928,43864,393,0001,006,0002,510,848
11Aug 31, 2023 02:367,901129,441,29465,581,85802,301,952
12Aug 31, 2023 02:367,938136,892,06265,886,15602,301,952
13Aug 31, 2023 02:367,94189,518,73963,914,0001,997,0002,514,944
14Aug 31, 2023 02:367,99086,921,91764,309,0002,009,0002,408,448
15Aug 31, 2023 02:368,174142,142,14567,846,53202,314,240