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 listJun 7, 2024 12:19GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 12:1900000Error: expected "53688512886111390 ", got "53688508591144094 "
2Jun 7, 2024 12:194,27757,968,00333,472,0002,028,000176,128
3Jun 7, 2024 12:194,27759,203,86933,471,0002,028,0002,400,256
4Jun 7, 2024 12:194,27958,816,73234,505,0001,014,0002,273,280
5Jun 7, 2024 12:194,28361,645,22033,521,0002,031,0002,273,280
6Jun 7, 2024 12:194,28356,599,95534,532,0001,015,000376,832
7Jun 7, 2024 12:194,28667,595,58334,554,0001,016,0002,478,080
8Jun 7, 2024 12:194,29065,932,33733,576,0002,034,0002,482,176
9Jun 7, 2024 12:194,29463,676,09634,622,0001,018,000372,736
10Jun 7, 2024 12:194,29961,873,33334,664,0001,019,0002,338,816
11Jun 7, 2024 12:194,32361,984,00433,884,0001,993,0002,482,176
12Jun 7, 2024 12:194,32864,371,16632,931,0002,993,0002,392,064
13Jun 7, 2024 12:194,37259,307,36333,263,0003,023,0002,478,080
14Jun 7, 2024 12:194,451109,002,09536,943,32202,240,512
15Jun 7, 2024 12:194,457109,678,27436,991,50902,240,512
16Jun 7, 2024 12:194,469107,019,42137,091,36102,375,680
17Jun 7, 2024 12:194,475110,147,13737,140,63502,240,512
18Jun 7, 2024 12:194,49298,502,75937,282,32602,236,416
19Jun 7, 2024 12:194,492104,378,76137,283,77302,363,392
20Jun 7, 2024 12:194,512112,086,16137,446,66102,248,704
21Jun 7, 2024 12:194,533111,760,81037,622,30302,244,608
22Jun 7, 2024 12:194,583107,144,06138,037,04802,256,896