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


        

JOJ Answer

2955 1
9770 3
9881 6
9970 62
9980 113
9999 688
9998 5550
9997 8280
9996 8855
9972 9440
9956 9747
9945 9901
9703 9954
9381 9988
8616 9997
8030 9998
6859 9998
2846 9996
38 9986
1 9408
0 1129
11 545
47 67
503 23
991 2