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 04:00GraceGraceScore: 5,173Success
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 04:005,13368,428,36042,600,00002,273,280
2Jun 4, 2024 04:005,14268,669,41742,681,00002,273,280
3Jun 4, 2024 04:005,14369,239,51441,693,000992,0002,273,280
4Jun 4, 2024 04:005,14469,055,36242,695,00002,396,160
5Jun 4, 2024 04:005,14567,694,60141,686,0001,016,0002,273,280
6Jun 4, 2024 04:005,14669,248,95942,708,00002,273,280
7Jun 4, 2024 04:005,15471,305,38941,787,000994,0002,273,280
8Jun 4, 2024 04:005,15766,832,03142,803,00002,400,256
9Jun 4, 2024 04:005,15970,857,40340,831,0001,991,0002,400,256
10Jun 4, 2024 04:005,16067,102,56840,836,0001,992,0002,273,280
11Jun 4, 2024 04:005,16071,508,02742,825,00002,273,280
12Jun 4, 2024 04:005,16172,476,52842,833,00002,273,280
13Jun 4, 2024 04:005,16168,697,77340,845,0001,992,0002,273,280
14Jun 4, 2024 04:005,16270,687,70940,850,0001,992,0002,273,280
15Jun 4, 2024 04:005,16271,780,31741,851,000996,0002,400,256
16Jun 4, 2024 04:005,16266,787,18040,852,0001,992,0002,400,256
17Jun 4, 2024 04:005,16274,289,52341,848,000996,0002,273,280
18Jun 4, 2024 04:005,16369,455,96642,849,00002,273,280
19Jun 4, 2024 04:005,16372,512,77041,857,000996,0002,273,280
20Jun 4, 2024 04:005,16365,061,94941,860,000996,0002,273,280
21Jun 4, 2024 04:005,16472,008,40441,867,000996,0002,396,160
22Jun 4, 2024 04:005,16467,789,47840,868,0001,993,0002,273,280
23Jun 4, 2024 04:005,16567,285,58640,878,0001,994,0002,396,160
24Jun 4, 2024 04:005,16665,139,07840,886,0001,994,0002,273,280
25Jun 4, 2024 04:005,17363,774,58440,939,0001,997,0002,392,064
26Jun 4, 2024 04:005,17970,657,37341,990,000999,0002,273,280
27Jun 4, 2024 04:005,18666,307,36542,042,0001,001,0002,400,256
28Jun 4, 2024 04:005,381119,409,06144,663,57002,285,568
29Jun 4, 2024 04:005,382114,200,67144,670,39902,285,568
30Jun 4, 2024 03:595,384103,916,60244,687,82702,289,664
31Jun 4, 2024 04:005,392123,118,52544,757,50902,285,568
32Jun 4, 2024 03:595,398121,638,68944,799,45102,289,664
33Jun 4, 2024 04:005,398137,165,80544,801,35102,285,568
34Jun 4, 2024 04:005,401115,012,90544,832,33802,289,664
35Jun 4, 2024 04:005,410118,159,18544,899,34002,285,568
36Jun 4, 2024 04:005,411123,050,48844,909,75902,285,568
37Jun 4, 2024 04:005,421112,698,96144,990,30802,289,664
38Jun 4, 2024 03:595,438100,905,17045,135,42602,281,472
39Jun 4, 2024 04:005,486104,435,43845,537,46402,273,280
40Jun 4, 2024 04:006,08576,501,77549,492,0001,010,0002,273,280
41Jun 4, 2024 04:006,09080,100,24550,545,00002,400,256
42Jun 4, 2024 04:006,09679,207,91550,600,00002,273,280
43Jun 4, 2024 04:006,12281,462,87150,814,00002,273,280
44Jun 4, 2024 04:006,12377,416,06449,821,000996,0002,400,256
45Jun 4, 2024 04:006,12378,283,38349,822,000996,0002,404,352
46Jun 4, 2024 04:006,12478,197,02248,835,0001,993,0002,400,256
47Jun 4, 2024 04:006,12581,054,70948,845,0001,993,0002,273,280
48Jun 4, 2024 04:006,13076,475,08048,885,0001,995,0002,273,280