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 listFeb 24, 2023 22:21Yuriy LyfenkoYuriy LyfenkoScore: 15,408Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 24, 2023 22:2114,913151,742,37668,874,00054,900,0002,404,352
2Feb 24, 2023 22:2115,035196,493,890124,793,27002,236,416
3Feb 24, 2023 22:2115,063147,998,39257,009,00068,011,0002,404,352
4Feb 24, 2023 22:2115,128162,258,61276,341,00049,220,0002,490,368
5Feb 24, 2023 22:2115,181178,753,019126,005,93002,240,512
6Feb 24, 2023 22:2115,196153,707,74863,062,00063,062,0002,351,104
7Feb 24, 2023 22:2115,404151,909,18657,934,00069,921,0002,297,856
8Feb 24, 2023 22:2115,408149,921,50665,941,00061,945,0002,486,272
9Feb 24, 2023 22:2115,434151,807,90967,052,00061,047,0002,375,680
10Feb 24, 2023 22:2115,712180,153,191130,408,13002,236,416
11Feb 24, 2023 22:2115,786154,834,11373,015,00058,012,0002,359,296
12Feb 24, 2023 22:2116,159156,512,90370,063,00064,058,0002,437,120
13Feb 24, 2023 22:2016,745206,767,699138,985,55702,289,664
14Feb 24, 2023 22:2016,881199,304,576140,115,36102,285,568
15Feb 24, 2023 22:2016,973202,839,102140,872,99802,232,320