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 4, 2024 06:32GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 06:3200000Error: expected "53692352743934010 ", got "53692352743908410 "
2Jun 4, 2024 06:325,41270,482,90142,923,0001,996,0002,404,352
3Jun 4, 2024 06:325,43167,725,27943,075,0002,003,0002,510,848
4Jun 4, 2024 06:325,43266,542,38543,082,0002,003,0002,396,160
5Jun 4, 2024 06:325,43365,828,84243,093,0002,004,0002,400,256
6Jun 4, 2024 06:325,43668,093,26644,115,0001,002,0002,396,160
7Jun 4, 2024 06:325,43868,235,24644,133,0001,003,0002,273,280
8Jun 4, 2024 06:325,44468,107,40543,181,0002,008,0002,273,280
9Jun 4, 2024 06:325,44570,818,15544,187,0001,004,0002,396,160
10Jun 4, 2024 06:325,44669,314,42643,194,0002,009,0002,400,256
11Jun 4, 2024 06:325,45276,179,73243,238,0002,011,0002,408,448
12Jun 4, 2024 06:325,46371,585,68344,332,0001,007,0002,404,352
13Jun 4, 2024 06:325,46667,651,31144,363,0001,008,0002,408,448
14Jun 4, 2024 06:325,46771,655,56144,365,0001,008,0002,408,448
15Jun 4, 2024 06:325,47067,112,40344,393,0001,008,0002,510,848
16Jun 4, 2024 06:325,47568,122,68545,439,00002,273,280
17Jun 4, 2024 06:325,47868,513,63445,465,00002,400,256
18Jun 4, 2024 06:325,48667,105,70145,537,00002,392,064
19Jun 4, 2024 06:325,49075,389,60245,570,00002,396,160
20Jun 4, 2024 06:325,514115,236,74545,766,39202,277,376
21Jun 4, 2024 06:325,521117,362,65945,821,49602,285,568
22Jun 4, 2024 06:325,526101,873,09945,864,54402,289,664
23Jun 4, 2024 06:325,530109,457,67545,902,41202,281,472
24Jun 4, 2024 06:325,551119,763,33246,076,27202,289,664
25Jun 4, 2024 06:325,551111,373,91746,073,95602,281,472
26Jun 4, 2024 06:325,575106,105,76346,271,24302,293,760
27Jun 4, 2024 06:325,599121,673,07746,469,79702,289,664
28Jun 4, 2024 06:325,626109,219,60646,699,70702,256,896