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 7, 2024 16:07GraceGraceScore: 3,925Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 16:073,79754,670,47530,496,0001,016,0002,482,176
2Jun 7, 2024 16:073,80360,028,20929,529,0002,036,0002,277,376
3Jun 7, 2024 16:073,81163,605,34229,590,0002,040,0002,482,176
4Jun 7, 2024 16:073,83058,282,56430,799,000993,0002,273,280
5Jun 7, 2024 16:073,86066,765,38930,034,0002,002,0002,273,280
6Jun 7, 2024 16:073,86156,508,15129,044,0003,004,0002,490,368
7Jun 7, 2024 16:073,86556,003,96630,072,0002,004,0002,486,272
8Jun 7, 2024 16:073,88056,468,24129,188,0003,019,0002,478,080
9Jun 7, 2024 16:073,88260,021,50530,205,0002,013,0002,273,280
10Jun 7, 2024 16:073,88259,148,69029,199,0003,020,0002,260,992
11Jun 7, 2024 16:073,89056,779,23030,267,0002,017,0002,273,280
12Jun 7, 2024 16:073,89358,256,06930,293,0002,019,0002,482,176
13Jun 7, 2024 16:073,89455,449,38931,313,0001,010,0002,273,280
14Jun 7, 2024 16:073,89556,079,40030,308,0002,020,0002,273,280
15Jun 7, 2024 16:073,89658,245,36129,307,0003,031,0002,273,280
16Jun 7, 2024 16:073,90254,263,11729,351,0003,036,0002,273,280
17Jun 7, 2024 16:073,90554,666,63530,383,0002,025,0002,273,280
18Jun 7, 2024 16:073,90754,365,61229,387,0003,040,0002,273,280
19Jun 7, 2024 16:073,91059,349,05030,429,0002,028,0002,490,368
20Jun 7, 2024 16:073,91356,238,15231,460,0001,014,0002,494,464
21Jun 7, 2024 16:073,91553,297,18830,461,0002,030,0002,273,280
22Jun 7, 2024 16:073,91753,090,93530,481,0002,032,0002,273,280
23Jun 7, 2024 16:073,91855,138,38030,485,0002,032,0002,273,280
24Jun 7, 2024 16:073,91957,084,68931,515,0001,016,0002,482,176
25Jun 7, 2024 16:073,92552,263,40130,606,0001,974,0002,342,912
26Jun 7, 2024 16:073,92763,675,80430,558,0002,037,0002,273,280
27Jun 7, 2024 16:073,93162,744,83132,629,00002,273,280
28Jun 7, 2024 16:073,95362,979,27731,814,000994,0002,273,280
29Jun 7, 2024 16:073,95560,836,18930,834,0001,989,0002,273,280
30Jun 7, 2024 16:073,95758,776,15330,855,0001,990,0002,482,176
31Jun 7, 2024 16:073,96356,191,12230,901,0001,993,0002,473,984
32Jun 7, 2024 16:073,96453,269,22129,912,0002,991,0002,273,280
33Jun 7, 2024 16:073,97461,097,24229,989,0002,998,0002,273,280
34Jun 7, 2024 16:073,98258,051,70531,047,0002,003,0002,482,176
35Jun 7, 2024 16:073,99162,985,55831,118,0002,007,0002,486,272
36Jun 7, 2024 16:073,99155,615,21631,117,0002,007,0002,490,368
37Jun 7, 2024 16:074,488105,802,60937,246,82202,240,512
38Jun 7, 2024 16:074,492102,727,11437,279,85402,236,416
39Jun 7, 2024 16:074,496109,237,46737,315,38502,379,776
40Jun 7, 2024 16:074,528120,871,20937,581,73602,252,800
41Jun 7, 2024 16:074,540101,265,54637,680,48302,244,608
42Jun 7, 2024 16:074,555101,721,14637,803,25502,236,416
43Jun 7, 2024 16:074,557111,331,98737,825,94702,240,512
44Jun 7, 2024 16:074,569111,656,87837,922,99802,252,800
45Jun 7, 2024 16:074,581100,641,09838,022,62602,232,320
46Jun 7, 2024 16:074,625103,244,31138,388,68402,240,512
47Jun 7, 2024 16:074,632121,233,82438,449,18302,244,608
48Jun 7, 2024 16:074,762122,279,45039,526,58402,252,800