Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

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

nfind -103034
nfind -103034
yfind -103034
yfind -103034
yfind -103034
yfind -103034
yfind -103034
1
Accessed (-103034, 0); Updated to (-103034, 71947).
nfind -62656
nfind -62656
yfind -62656
yfind -62656
yfind -62656
yfind -62656
yfind -62656
2
Accessed (-62656, 0); Updated to (-62656, 870048).
nfind2 -315059
nfind2 -315059
insert -62656
nfind -62656
inserted at5
insert -103034
nfind -103034
inserted at8
insert -315059
nfind2 -315059
inserted at8
insert -62656
nfind -62656
inserted at2
insert -103034
nfind -103034
inserted at12
insert -315059
nfind -315059
inserted at1
yfind -315059
yfind -315059
yfind -315059
yfind -315059
yfind -315059
3
Accessed (-315059, 0); Updated to (-315059, 22906). Rehashed table from 5 to 23.
nfind 308291
nfind 308291
yfind 308291
yfind 308291
yfind 308291
yfind 308291
yfind 308291
4
Accessed (308291, 0); Updated to (308291, -231234).
nfind -357863
nfind -357863
yfind -357863
yfind -357863
yfind -357863
yfind -357863
yfind -357863
5
Accessed (-357863, 0); Updated to (-357863, 619784

JOJ Answer

1
Accessed (-103034, 0); Updated to (-103034, 71947).
2
Accessed (-62656, 0); Updated to (-62656, 870048).
3
Accessed (-315059, 0); Updated to (-315059, 22906). Rehashed table from 5 to 11.
4
Accessed (308291, 0); Updated to (308291, -231234).
5
Accessed (-357863, 0); Updated to (-357863, 619784).
6
Accessed (-107171, 0); Updated to (-107171, 495847). Rehashed table from 11 to 23.
7
Inserted (30277, -822639).
8
Accessed (-83574, 0); Updated to (-83574, -674911).
9
Accessed (-926321, 0); Updated to (-926321, -731722).
10
Inserted (403591, 738996).
11
Accessed (-800816, 0); Updated to (-800816, 874773).
12
Inserted (-620890, -388664). Rehashed table from 23 to 47.
13
Accessed (-277541, 0); Updated to (-277541, 505919).
14
Accessed (770791, 0); Updated to (770791, 265466).
15
Inserted (136468, 759132).
16
Inserted (-820008, -284236).
17
Inserted (-373913, 9287).
18
Inserted (542129, -418329).
19
Inserted (-732582, -407810).
20
Accessed (-527752, 0); Updated to (-527752, 103093).
21
Accessed (-923102, 0); Updated