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 15:21GraceGraceError
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 15:2300000Error: expected "53683151891780729 ", got "53683147596813433 "
2Jun 7, 2024 15:1900000Error: expected "53681232040597326 ", got "53680802543867726 "
3Jun 7, 2024 15:1900000Error: expected "53686272748467101 ", got "53686229798794141 "
4Jun 7, 2024 15:2000000Error: expected "53680071819705935 ", got "53680067524738639 "
5Jun 7, 2024 15:2000000Error: expected "53684529365953189 ", got "53684099869223589 "
6Jun 7, 2024 15:2000000Error: expected "53689144269040799 ", got "53689139974073503 "
7Jun 7, 2024 15:2000000Error: expected "53689703624467813 ", got "53689660674794853 "
8Jun 7, 2024 15:2000000Error: expected "53689922617193609 ", got "53689918322226313 "
9Jun 7, 2024 15:2000000Error: expected "53688781149247086 ", got "53688776854279790 "
10Jun 7, 2024 15:2100000Error: expected "53693030248616574 ", got "53693025953649278 "
11Jun 7, 2024 15:2200000Error: expected "53680585088263354 ", got "53680542138590394 "
12Jun 7, 2024 15:2200000Error: expected "53679963513054398 ", got "53679920563381438 "
13Jun 7, 2024 15:2200000Error: expected "53681637510035451 ", got "53681208013305851 "
14Jun 7, 2024 15:2200000Error: expected "53691314306945801 ", got "53691310011978505 "
15Jun 7, 2024 15:2300000Error: expected "53684899077568916 ", got "53684856127895956 "
16Jun 7, 2024 15:2100000Error: expected "53688749241532692 ", got "53688706291859732 "
17Jun 7, 2024 15:213,83757,899,36330,848,000995,0002,273,280
18Jun 7, 2024 15:213,86756,062,32030,088,0002,005,0002,273,280
19Jun 7, 2024 15:213,88056,203,62930,190,0002,012,0002,273,280
20Jun 7, 2024 15:223,89562,986,38629,298,0003,030,0002,486,272
21Jun 7, 2024 15:213,90059,103,62431,360,0001,011,0002,486,272
22Jun 7, 2024 15:213,90654,820,13131,403,0001,013,0002,482,176
23Jun 7, 2024 15:223,91554,179,01930,466,0002,031,0002,273,280
24Jun 7, 2024 15:213,92353,510,29630,529,0002,035,0002,486,272
25Jun 7, 2024 15:223,93164,163,53530,587,0002,039,0002,273,280
26Jun 7, 2024 15:223,93259,120,98431,619,0001,019,0002,490,368
27Jun 7, 2024 15:223,93359,452,85430,607,0002,040,0002,392,064
28Jun 7, 2024 15:223,93362,670,27730,608,0002,040,0002,273,280
29Jun 7, 2024 15:223,93661,403,51331,648,0001,020,0002,273,280
30Jun 7, 2024 15:223,95561,261,57029,846,0002,984,0002,273,280
31Jun 7, 2024 15:213,96560,550,67930,917,0001,994,0002,486,272
32Jun 7, 2024 15:213,96857,647,96830,940,0001,996,0002,273,280
33Jun 7, 2024 15:213,99655,584,17831,157,0002,010,0002,273,280
34Jun 7, 2024 15:224,00762,202,27430,233,0003,023,0002,490,368
35Jun 7, 2024 15:214,00962,490,40432,269,0001,008,0002,273,280
36Jun 7, 2024 15:214,04961,894,06632,588,0001,018,0002,273,280
37Jun 7, 2024 15:224,112108,563,63934,132,08402,244,608
38Jun 7, 2024 15:224,113113,308,45234,135,91202,244,608
39Jun 7, 2024 15:234,12899,698,29334,261,06502,232,320
40Jun 7, 2024 15:224,135105,871,40334,316,68902,228,224
41Jun 7, 2024 15:224,152122,328,95234,462,13502,236,416
42Jun 7, 2024 15:214,156111,395,98134,498,58602,232,320
43Jun 7, 2024 15:224,157103,578,47634,502,20002,232,320
44Jun 7, 2024 15:224,16597,154,15734,572,75102,236,416
45Jun 7, 2024 15:214,178110,413,98234,679,07802,240,512
46Jun 7, 2024 15:194,182122,496,76834,710,13502,232,320
47Jun 7, 2024 15:224,182118,058,06234,711,41502,379,776
48Jun 7, 2024 15:224,18499,702,32134,727,07802,236,416
49Jun 7, 2024 15:194,203102,499,84534,889,01702,240,512
50Jun 7, 2024 15:214,220114,405,12235,027,29702,236,416
51Jun 7, 2024 15:214,23160,836,56033,110,0002,006,0002,273,280
52Jun 7, 2024 15:224,235130,477,86835,153,81002,240,512
53Jun 7, 2024 15:224,23698,960,70735,155,35402,240,512
54Jun 7, 2024 15:234,249108,660,78935,270,05902,244,608
55Jun 7, 2024 15:214,27696,742,30735,492,30802,244,608
56Jun 7, 2024 15:224,292116,075,16935,626,85102,240,512
57Jun 7, 2024 15:224,37899,116,17036,334,18802,367,488
58Jun 7, 2024 15:234,38893,745,76636,420,60302,363,392
59Jun 7, 2024 15:214,413113,947,21936,629,37402,256,896
60Jun 7, 2024 15:214,419102,551,99336,680,04302,236,416
61Jun 7, 2024 15:194,652102,592,39238,609,58902,236,416