Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Time Exceeded. And the exit code of your program is -9, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
i2ts:0 f-120713at3 f1:0 i4:1 i2ts:1 f-91652at4 f1:1 i4:2 f808146at1 f1:2 f808146at1 f1:2 ta,bs:3:5 ts,bs1:3:11 i2ts:3 f808146at9 f1:3 i4:4 i2ts:4 f-120713at6 f1:4 i4:5 i2ts:5 f-91652at5 f1:5 ta,bs:6:11 ts,bs1:6:23 i2ts:6 f-91652at9 f1:6 i4:7 i2ts:7 f-120713at20 f1:7 i4:8 i2ts:8 f808146at18 f1:8 i4:9 nbs0:23 nbs1:23 i4:9 nbs0:23 nbs1:23 []2:9,23 f808146at18 f3:9 f808146at18 f3:9 f808146at18 f3:9 []1:9,23 f808146at18 f3:9 f808146at18 f3:9 []1:9,23 f253894at20 f2:9 f253894at20 f2:9 []2:10,23 f253894at20 f3:10 f253894at20 f3:10 f253894at20 f3:10 []1:10,23 f253894at20 f3:10 f253894at20 f3:10 []1:10,23 f-770319at3 f1:10 f-770319at3 f1:10 []2:11,23 f-770319at3 f3:11 f-770319at3 f3:11 f-770319at3 f3:11 []1:11,23 f-770319at3 f3:11 f-770319at3 f3:11 []1:11,23 i2ts:11 f126041at1 f1:11 ta,bs:12:23 ts,bs1:12:47 i2ts:12 f126041at34 f1:12 i4:13 i2ts:13 f-770319at36 f1:13 i4:14 i2ts:14 f-91652at23 f1:14 i4:15 i2ts:15 f808146at28 f1:15 i4:16 i2ts:16 f253894at0 f1:16 i4:17 i2ts:17 f-120713at8 f1:17 i4:18 nbs0:47 nbs1:47 i4:18
JOJ Answer
========== Resulting HashTable ========== 0 | 1 | 2 | 3 | 4 | {-829968, -641205} {805802, 810243} 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | {863378, 635057} 24 | 25 | 26 | 27 | 28 | 29 | {-484601, -910827} 30 | 31 | 32 | {920944, 994910} 33 | 34 | 35 | 36 | 37 | 38 | {172709, -971866} 39 | 40 | 41 | {460497, 822186} 42 | 43 | 44 | {-484586, -246909} {-196801, 373336} 45 | 46 | {460502, -715741} 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | {402955, -587107} 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | {402967, -171062} 69 | 70 | 71 | 72 | {-829900, -773165} 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | {-599663, -