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 11:11GraceGraceScore: 5,406Success
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 11:115,32367,352,03543,176,0001,004,0002,273,280
2May 31, 2024 11:115,33072,117,79843,232,0001,005,0002,273,280
3May 31, 2024 11:115,33566,366,94743,274,0001,006,0002,273,280
4May 31, 2024 11:115,33677,971,95543,283,0001,006,0002,273,280
5May 31, 2024 11:115,34473,921,34843,349,0001,008,0002,400,256
6May 31, 2024 11:115,35969,921,74543,490,000988,0002,400,256
7May 31, 2024 11:115,36468,817,58943,508,0001,011,0002,273,280
8May 31, 2024 11:115,36770,082,00043,533,0001,012,0002,273,280
9May 31, 2024 11:115,36867,021,68243,541,0001,012,0002,273,280
10May 31, 2024 11:115,37266,411,56444,588,00002,273,280
11May 31, 2024 11:115,37370,778,04443,587,0001,013,0002,400,256
12May 31, 2024 11:115,37769,940,77843,614,0001,014,0002,408,448
13May 31, 2024 11:115,40072,336,89743,826,000996,0002,273,280
14May 31, 2024 11:115,40272,889,54543,841,000996,0002,273,280
15May 31, 2024 11:115,40371,520,67342,850,0001,993,0002,273,280
16May 31, 2024 11:115,40370,861,20044,845,00002,273,280
17May 31, 2024 11:115,40476,954,86442,863,0001,993,0002,273,280
18May 31, 2024 11:115,40469,134,20942,858,0001,993,0002,273,280
19May 31, 2024 11:115,40670,425,90043,871,000997,0002,273,280
20May 31, 2024 11:115,40668,968,93442,872,0001,994,0002,273,280
21May 31, 2024 11:115,52377,693,51543,850,0001,993,0002,273,280
22May 31, 2024 11:115,53672,095,63643,954,0001,997,0002,273,280
23May 31, 2024 11:115,55669,043,68644,112,0002,005,0002,273,280
24May 31, 2024 11:115,55875,031,56945,131,0001,002,0002,273,280
25May 31, 2024 11:115,560117,430,30746,147,58302,289,664
26May 31, 2024 11:115,566123,081,11946,198,78602,273,280
27May 31, 2024 11:115,576105,472,28846,283,73602,285,568
28May 31, 2024 11:115,582111,457,93146,330,63802,277,376
29May 31, 2024 11:115,583110,989,51846,342,23202,285,568
30May 31, 2024 11:115,584114,406,11646,346,79602,277,376
31May 31, 2024 11:115,590122,975,08046,395,00302,285,568
32May 31, 2024 11:115,592125,992,08446,417,67002,293,760
33May 31, 2024 11:115,595103,897,81546,441,04602,297,856
34May 31, 2024 11:115,599112,699,82446,468,59102,285,568
35May 31, 2024 11:115,61697,804,15446,610,01402,289,664
36May 31, 2024 11:115,633111,930,84046,755,45002,285,568