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 08:18GraceGraceScore: 5,353Success
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 08:185,28566,954,90641,874,0001,994,0002,273,280
2May 31, 2024 08:185,29075,172,94441,913,0001,995,0002,273,280
3May 31, 2024 08:185,29166,426,90641,922,0001,996,0002,273,280
4May 31, 2024 08:185,29169,214,63141,919,0001,996,0002,273,280
5May 31, 2024 08:185,29467,360,78641,943,0001,997,0002,273,280
6May 31, 2024 08:185,29468,278,34641,945,0001,997,0002,273,280
7May 31, 2024 08:185,29566,920,87442,954,000998,0002,387,968
8May 31, 2024 08:185,29571,263,68842,952,000998,0002,273,280
9May 31, 2024 08:185,29765,671,44241,969,0001,998,0002,396,160
10May 31, 2024 08:185,29766,538,41742,970,000999,0002,510,848
11May 31, 2024 08:185,29966,565,67841,983,0001,999,0002,273,280
12May 31, 2024 08:185,29965,826,59441,980,0001,999,0002,273,280
13May 31, 2024 08:185,30264,427,36842,006,0002,000,0002,273,280
14May 31, 2024 08:185,30367,666,21543,017,0001,000,0002,273,280
15May 31, 2024 08:185,30764,718,30842,046,0002,002,0002,404,352
16May 31, 2024 08:185,31064,844,49343,075,0001,001,0002,256,896
17May 31, 2024 08:185,31064,243,97244,072,00002,273,280
18May 31, 2024 08:185,34769,172,79644,382,00002,273,280
19May 31, 2024 08:185,35366,777,64443,423,0001,009,0002,404,352
20May 31, 2024 08:185,36077,597,06142,510,0001,977,0002,404,352
21May 31, 2024 08:185,37274,250,07243,577,0001,013,0002,273,280
22May 31, 2024 08:185,40470,803,24543,854,000996,0002,400,256
23May 31, 2024 08:185,46373,633,90145,341,00002,400,256
24May 31, 2024 08:185,504109,199,18545,679,26502,285,568
25May 31, 2024 08:185,511109,240,17045,737,74402,289,664
26May 31, 2024 08:185,512109,149,28645,745,95302,297,856
27May 31, 2024 08:185,513114,230,79145,758,32302,297,856
28May 31, 2024 08:185,520106,096,47445,819,20902,281,472
29May 31, 2024 08:185,524114,292,06445,849,59702,289,664
30May 31, 2024 08:185,524115,433,78245,850,05502,285,568
31May 31, 2024 08:185,524107,731,06145,848,02602,285,568
32May 31, 2024 08:185,540104,135,39245,979,74202,285,568
33May 31, 2024 08:185,54671,391,02644,027,0002,001,0002,273,280
34May 31, 2024 08:185,559104,058,16346,141,44302,285,568
35May 31, 2024 08:185,609117,248,30646,551,72002,285,568
36May 31, 2024 08:185,680126,314,95547,146,77702,281,472