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 listMay 27, 2024 13:32GraceGraceScore: 7,001Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:326,88280,834,22655,116,0002,004,0002,285,568
2May 27, 2024 13:326,92182,607,20955,427,0002,015,0002,273,280
3May 27, 2024 13:326,93784,937,18156,568,0001,010,0002,285,568
4May 27, 2024 13:326,93780,177,85357,578,00002,269,184
5May 27, 2024 13:326,94584,244,40256,635,0001,011,0002,285,568
6May 27, 2024 13:326,95186,250,08856,681,0001,012,0002,285,568
7May 27, 2024 13:326,96584,813,56656,816,000996,0002,277,376
8May 27, 2024 13:326,96586,241,93855,816,0001,993,0002,285,568
9May 27, 2024 13:326,96685,850,36955,823,0001,993,0002,285,568
10May 27, 2024 13:326,96886,756,08555,837,0001,994,0002,285,568
11May 27, 2024 13:326,96986,412,01456,847,000997,0002,531,328
12May 27, 2024 13:326,97085,279,90855,853,0001,994,0002,273,280
13May 27, 2024 13:326,98088,179,37555,933,0001,997,0002,277,376
14May 27, 2024 13:326,98881,894,02656,001,0002,000,0002,273,280
15May 27, 2024 13:326,98983,578,05157,006,0001,000,0002,285,568
16May 27, 2024 13:327,00184,811,70556,105,0002,003,0002,285,568
17May 27, 2024 13:327,00285,748,18857,117,0001,002,0002,285,568
18May 27, 2024 13:327,00386,100,25156,122,0002,004,0002,285,568
19May 27, 2024 13:327,853138,451,98665,179,59602,297,856
20May 27, 2024 13:327,888141,797,57765,472,52302,252,800
21May 27, 2024 13:327,946122,003,44165,948,56502,297,856
22May 27, 2024 13:327,948135,947,64765,971,83102,281,472
23May 27, 2024 13:327,963128,132,17966,090,04202,297,856
24May 27, 2024 13:328,021124,768,74566,578,38702,285,568
25May 27, 2024 13:328,49292,384,70569,476,0001,006,0002,285,568
26May 27, 2024 13:328,52992,681,27768,795,0001,994,0002,260,992
27May 27, 2024 13:328,533100,630,06068,828,0001,995,0002,285,568
28May 27, 2024 13:328,55396,192,77568,992,0001,999,0002,285,568
29May 27, 2024 13:328,58994,465,82970,284,0001,004,0002,285,568
30May 27, 2024 13:328,627104,349,44070,595,0001,008,0002,285,568