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 31, 2024 13:40GraceGraceScore: 5,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 13:395,29866,881,61141,973,0001,998,0002,273,280
2May 31, 2024 13:405,30167,330,43343,002,0001,000,0002,514,944
3May 31, 2024 13:405,30171,581,66843,000,0001,000,0002,400,256
4May 31, 2024 13:405,30474,581,87542,021,0002,001,0002,400,256
5May 31, 2024 13:395,30569,891,41343,028,0001,000,0002,273,280
6May 31, 2024 13:395,30670,180,64142,038,0002,001,0002,400,256
7May 31, 2024 13:395,30765,582,86642,043,0002,002,0002,400,256
8May 31, 2024 13:395,30867,188,80243,053,0001,001,0002,273,280
9May 31, 2024 13:405,30870,982,81443,057,0001,001,0002,392,064
10May 31, 2024 13:405,31767,794,31642,129,0002,006,0002,273,280
11May 31, 2024 13:405,32065,771,86742,153,0002,007,0002,273,280
12May 31, 2024 13:405,32565,726,82243,192,0001,004,0002,273,280
13May 31, 2024 13:405,33868,938,70842,291,0002,013,0002,400,256
14May 31, 2024 13:405,34965,134,61244,396,00002,510,848
15May 31, 2024 13:395,40475,158,11643,854,000996,0002,273,280
16May 31, 2024 13:395,42371,019,42944,009,0001,000,0002,404,352
17May 31, 2024 13:395,44170,220,98243,151,0002,007,0002,273,280
18May 31, 2024 13:395,45467,687,34144,266,0001,006,0002,273,280
19May 31, 2024 13:405,45671,953,84044,277,0001,006,0002,396,160
20May 31, 2024 13:405,46573,272,91845,363,00002,273,280
21May 31, 2024 13:405,47472,525,78343,458,0001,975,0002,273,280
22May 31, 2024 13:405,507100,610,44445,705,91102,285,568
23May 31, 2024 13:395,509118,446,22045,722,21302,285,568
24May 31, 2024 13:405,514109,667,45345,767,16702,285,568
25May 31, 2024 13:405,516115,457,27645,780,54002,285,568
26May 31, 2024 13:395,517105,632,83245,787,98402,285,568
27May 31, 2024 13:395,520111,470,84145,812,58302,281,472
28May 31, 2024 13:405,523108,709,38645,840,75002,281,472
29May 31, 2024 13:405,524120,334,65845,849,36602,285,568
30May 31, 2024 13:395,541100,243,04845,992,86502,285,568
31May 31, 2024 13:395,564126,718,26646,182,97002,285,568
32May 31, 2024 13:405,632107,504,11546,746,03402,285,568
33May 31, 2024 13:395,662120,637,24246,995,94402,277,376