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:04GraceGraceScore: 3,934Success
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:043,81863,123,62130,670,0001,022,0002,482,176
2Jun 7, 2024 16:043,83257,554,33529,820,0001,988,0002,490,368
3Jun 7, 2024 16:043,83663,999,51328,852,0002,984,0002,273,280
4Jun 7, 2024 16:043,83657,847,61729,848,0001,989,0002,351,104
5Jun 7, 2024 16:043,83858,708,98830,862,000995,0002,273,280
6Jun 7, 2024 16:043,84159,961,59228,894,0002,989,0002,486,272
7Jun 7, 2024 16:043,86258,442,93029,048,0003,005,0002,273,280
8Jun 7, 2024 16:043,86357,278,59329,060,0003,006,0002,490,368
9Jun 7, 2024 16:043,86753,437,72929,086,0003,008,0002,486,272
10Jun 7, 2024 16:043,87056,076,29129,109,0003,011,0002,482,176
11Jun 7, 2024 16:043,87559,362,91431,159,0001,005,0002,486,272
12Jun 7, 2024 16:043,87755,021,02229,163,0003,016,0002,486,272
13Jun 7, 2024 16:043,88252,831,83030,209,0002,013,0002,273,280
14Jun 7, 2024 16:043,88356,143,63530,218,0002,014,0002,273,280
15Jun 7, 2024 16:043,88359,777,32530,215,0002,014,0002,273,280
16Jun 7, 2024 16:043,88456,745,10729,212,0003,022,0002,490,368
17Jun 7, 2024 16:043,88859,438,44930,257,0002,017,0002,478,080
18Jun 7, 2024 16:043,89058,170,27429,259,0003,026,0002,273,280
19Jun 7, 2024 16:043,89759,471,13829,310,0003,032,0002,482,176
20Jun 7, 2024 16:043,89968,972,10229,330,0003,034,0002,490,368
21Jun 7, 2024 16:043,91155,256,68130,430,0002,028,0002,392,064
22Jun 7, 2024 16:043,91457,616,01831,473,0001,015,0002,490,368
23Jun 7, 2024 16:043,92063,618,89030,504,0002,033,0002,367,488
24Jun 7, 2024 16:043,92355,523,63731,543,0001,017,0002,506,752
25Jun 7, 2024 16:043,93462,846,87532,649,00002,486,272
26Jun 7, 2024 16:043,93757,391,59030,635,0002,042,0002,273,280
27Jun 7, 2024 16:043,93763,852,56330,637,0002,042,0002,273,280
28Jun 7, 2024 16:043,93861,495,74230,644,0002,042,0002,482,176
29Jun 7, 2024 16:043,93963,626,40130,647,0002,043,0002,342,912
30Jun 7, 2024 16:043,95560,089,77329,845,0002,984,0002,371,584
31Jun 7, 2024 16:043,95657,497,12630,846,0001,990,0002,273,280
32Jun 7, 2024 16:043,95759,176,01630,852,0001,990,0002,486,272
33Jun 7, 2024 16:043,95756,636,24429,861,0002,986,0002,482,176
34Jun 7, 2024 16:043,98059,277,55431,031,0002,002,0002,478,080
35Jun 7, 2024 16:044,00359,514,24732,222,0001,006,0002,273,280
36Jun 7, 2024 16:044,07859,033,68531,860,0001,991,0002,490,368
37Jun 7, 2024 16:044,122101,304,45334,212,87102,244,608
38Jun 7, 2024 16:044,135103,151,89534,321,55402,363,392
39Jun 7, 2024 16:044,13794,032,67334,335,97502,232,320
40Jun 7, 2024 16:044,147108,211,73134,417,01602,228,224
41Jun 7, 2024 16:044,152104,271,58034,464,09202,244,608
42Jun 7, 2024 16:044,15795,168,21734,504,98602,244,608
43Jun 7, 2024 16:044,15899,466,61734,514,95102,228,224
44Jun 7, 2024 16:044,170111,457,51434,614,00402,232,320
45Jun 7, 2024 16:044,188111,694,50034,763,81602,244,608
46Jun 7, 2024 16:044,232105,518,24935,121,61202,232,320
47Jun 7, 2024 16:044,23597,924,24535,153,76102,375,680
48Jun 7, 2024 16:044,441101,481,19936,863,40502,240,512