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 07:23GraceGraceScore: 5,928Success
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 07:235,86276,956,88047,641,0001,013,0002,404,352
2Jun 4, 2024 07:235,86579,425,31447,667,0001,014,0002,400,256
3Jun 4, 2024 07:235,86679,860,80547,672,0001,014,0002,273,280
4Jun 4, 2024 07:235,88478,957,08647,841,000996,0002,392,064
5Jun 4, 2024 07:235,88475,822,39046,845,0001,993,0002,396,160
6Jun 4, 2024 07:235,91476,971,04048,084,0001,001,0002,273,280
7Jun 4, 2024 07:235,91473,065,21147,085,0002,003,0002,273,280
8Jun 4, 2024 07:235,91570,940,69747,093,0002,003,0002,273,280
9Jun 4, 2024 07:235,91774,222,10647,109,0002,004,0002,273,280
10Jun 4, 2024 07:235,91771,679,06647,111,0002,004,0002,404,352
11Jun 4, 2024 07:235,92070,637,74748,133,0001,002,0002,273,280
12Jun 4, 2024 07:235,92477,337,65647,160,0002,006,0002,273,280
13Jun 4, 2024 07:235,92670,083,77847,177,0002,007,0002,273,280
14Jun 4, 2024 07:235,92773,072,82748,192,0001,004,0002,400,256
15Jun 4, 2024 07:235,92874,431,17648,201,0001,004,0002,273,280
16Jun 4, 2024 07:235,92871,860,14548,199,0001,004,0002,273,280
17Jun 4, 2024 07:235,93872,871,84648,283,0001,005,0002,400,256
18Jun 4, 2024 07:235,94069,215,41749,300,00002,273,280
19Jun 4, 2024 07:235,94370,905,21948,325,0001,006,0002,273,280
20Jun 4, 2024 07:235,94777,845,15048,354,0001,007,0002,273,280
21Jun 4, 2024 07:236,00574,563,37248,847,000996,0002,273,280
22Jun 4, 2024 07:236,00577,614,75948,847,000996,0002,273,280
23Jun 4, 2024 07:236,05375,716,18749,238,0001,004,0002,273,280
24Jun 4, 2024 07:236,137124,385,39750,933,01602,289,664
25Jun 4, 2024 07:236,142125,203,62250,974,68602,277,376
26Jun 4, 2024 07:236,142114,185,21250,977,04502,289,664
27Jun 4, 2024 07:236,170126,057,26451,211,78302,281,472
28Jun 4, 2024 07:236,221108,319,08751,635,92202,285,568
29Jun 4, 2024 07:236,233126,843,71351,736,85002,285,568
30Jun 4, 2024 07:236,24482,734,40950,833,000996,0002,273,280