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:22GraceGraceScore: 5,790Success
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:225,76474,201,38345,852,0001,993,0002,273,280
2Jun 4, 2024 07:225,76971,502,94845,887,0001,995,0002,273,280
3Jun 4, 2024 07:225,77573,357,33047,936,00002,404,352
4Jun 4, 2024 07:225,78070,874,23946,974,000999,0002,273,280
5Jun 4, 2024 07:225,78178,560,13845,981,0001,999,0002,273,280
6Jun 4, 2024 07:225,78268,010,15245,988,0001,999,0002,273,280
7Jun 4, 2024 07:225,78472,258,04646,010,0002,000,0002,396,160
8Jun 4, 2024 07:225,78571,088,69746,018,0002,000,0002,273,280
9Jun 4, 2024 07:225,78670,145,60446,023,0002,001,0002,396,160
10Jun 4, 2024 07:225,78671,133,11246,021,0002,000,0002,273,280
11Jun 4, 2024 07:225,78669,320,10146,026,0002,001,0002,273,280
12Jun 4, 2024 07:225,78775,147,05347,029,0001,000,0002,273,280
13Jun 4, 2024 07:225,78769,192,77946,030,0002,001,0002,404,352
14Jun 4, 2024 07:225,78773,177,16246,028,0002,001,0002,273,280
15Jun 4, 2024 07:225,78877,257,91446,042,0002,001,0002,273,280
16Jun 4, 2024 07:225,79075,039,72047,058,0001,001,0002,392,064
17Jun 4, 2024 07:225,79270,339,48346,070,0002,003,0002,392,064
18Jun 4, 2024 07:225,79371,873,26746,080,0002,003,0002,273,280
19Jun 4, 2024 07:225,79569,445,71246,095,0002,004,0002,404,352
20Jun 4, 2024 07:225,79576,798,35746,095,0002,004,0002,273,280
21Jun 4, 2024 07:225,79674,560,15646,105,0002,004,0002,273,280
22Jun 4, 2024 07:225,80073,257,45747,141,0001,003,0002,273,280
23Jun 4, 2024 07:225,80170,923,36946,142,0002,006,0002,273,280
24Jun 4, 2024 07:225,88576,326,60747,852,000996,0002,404,352
25Jun 4, 2024 07:226,019114,441,72449,953,64802,289,664
26Jun 4, 2024 07:226,022117,125,66449,983,11902,285,568
27Jun 4, 2024 07:226,022119,436,80649,983,46102,289,664
28Jun 4, 2024 07:226,030117,901,96650,046,98902,281,472
29Jun 4, 2024 07:226,033106,750,90550,075,99102,277,376
30Jun 4, 2024 07:226,105122,528,10050,672,93102,293,760