QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#577246#8674. Riddle of the Sphinxlpf#AC ✓1ms3944kbC++141.1kb2024-09-20 09:38:272024-09-20 09:38:27

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3816kb

input:

3
8
8
17
39

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1 2 3 

result:

ok correct!

Test #2:

score: 0
Accepted
time: 1ms
memory: 3740kb

input:

9999
3
19999
10004
20010

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
9998 1 1 

result:

ok correct!

Test #3:

score: 0
Accepted
time: 1ms
memory: 3792kb

input:

6666
9999
16665
23331
53328

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
3333 3333 3333 

result:

ok correct!

Test #4:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

1395
1927
3295
4747
10709

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
893 503 712 

result:

ok correct!

Test #5:

score: 0
Accepted
time: 1ms
memory: 3880kb

input:

1235
2259
2837
5390
12094

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
868 367 947 

result:

ok correct!

Test #6:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

1511
2413
3850
5510
12640

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
684 827 793 

result:

ok correct!

Test #7:

score: 0
Accepted
time: 1ms
memory: 3812kb

input:

331
903
685
2112
4691

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
308 23 440 

result:

ok correct!

Test #8:

score: 0
Accepted
time: 1ms
memory: 3748kb

input:

1615
1592
4140
3889
9030

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
705 910 341 

result:

ok correct!

Test #9:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

2767
1883
6817
5247
12078

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1481 1285 299 

result:

ok correct!

Test #10:

score: 0
Accepted
time: 1ms
memory: 3944kb

input:

5091
5254
13757
12022
28458

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1516 3575 839 

result:

ok correct!

Test #11:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

2386
2386
4903
7026
15311

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
2254 132 1127 

result:

ok correct!

Test #12:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

839
150
1716
1100
2296

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
801 38 56 

result:

ok correct!

Test #13:

score: 0
Accepted
time: 1ms
memory: 3792kb

input:

2252
9000
5752
19004
43131

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1004 1248 3876 

result:

ok correct!

Test #14:

score: 0
Accepted
time: 1ms
memory: 3880kb

input:

5895
7120
15678
16253
38008

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
2013 3884 1618 

result:

ok correct!

Test #15:

score: 0
Accepted
time: 1ms
memory: 3724kb

input:

7889
7060
22411
15378
37603

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1256 6633 214 

result:

ok correct!

Test #16:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

4947
5528
14037
11861
28557

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
805 4142 693 

result:

ok correct!

Test #17:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

5171
6548
14782
13825
33148

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
731 4440 1054 

result:

ok correct!

Test #18:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

3887
11512
11216
23469
54416

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
445 3442 4035 

result:

ok correct!

Test #19:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

4545
8
8
17
39

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1 2 3 

result:

ok correct!

Test #20:

score: 0
Accepted
time: 0ms
memory: 3740kb

input:

3
10
8
17
39

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1 2 3 

result:

ok correct!

Test #21:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

3
8
11
17
39

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1 2 3 

result:

ok correct!

Test #22:

score: 0
Accepted
time: 0ms
memory: 3816kb

input:

3
8
8
19377
39

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1 2 3 

result:

ok correct!

Test #23:

score: 0
Accepted
time: 0ms
memory: 3880kb

input:

3
8
8
17
30

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1 2 3 

result:

ok correct!

Test #24:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

3580
3
19999
10004
20010

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
9998 1 1 

result:

ok correct!

Test #25:

score: 0
Accepted
time: 1ms
memory: 3880kb

input:

9999
3
19999
10004
20010

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
9998 1 1 

result:

ok correct!

Test #26:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

9999
3
11760
10004
20010

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
9998 1 1 

result:

ok correct!

Test #27:

score: 0
Accepted
time: 1ms
memory: 3724kb

input:

9999
3
19999
10003
20010

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
9998 1 1 

result:

ok correct!

Test #28:

score: 0
Accepted
time: 0ms
memory: 3940kb

input:

9999
3
19999
10004
40665

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
9998 1 1 

result:

ok correct!

Test #29:

score: 0
Accepted
time: 1ms
memory: 3812kb

input:

6665
9999
16665
23331
53328

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
3333 3333 3333 

result:

ok correct!

Test #30:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

6666
9998
16665
23331
53328

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
3333 3333 3333 

result:

ok correct!

Test #31:

score: 0
Accepted
time: 1ms
memory: 3728kb

input:

6666
9999
16668
23331
53328

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
3333 3333 3333 

result:

ok correct!

Test #32:

score: 0
Accepted
time: 0ms
memory: 3812kb

input:

6666
9999
16665
23333
53328

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
3333 3333 3333 

result:

ok correct!

Test #33:

score: 0
Accepted
time: 1ms
memory: 3748kb

input:

6666
9999
16665
23331
53337

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
3333 3333 3333 

result:

ok correct!

Test #34:

score: 0
Accepted
time: 1ms
memory: 3824kb

input:

1031
2036
2850
4615
10542

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
543 588 724 

result:

ok correct!

Test #35:

score: 0
Accepted
time: 1ms
memory: 3792kb

input:

1741
5437
4443
5834
13412

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
780 961 783 

result:

ok correct!

Test #36:

score: 0
Accepted
time: 0ms
memory: 3880kb

input:

879
813
1947
2316
5133

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
690 189 312 

result:

ok correct!

Test #37:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

386
2231
1061
4563
10378

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
97 289 971 

result:

ok correct!

Test #38:

score: 0
Accepted
time: 1ms
memory: 3824kb

input:

416
472
950
1242
22838

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
298 118 177 

result:

ok correct!

Test #39:

score: 0
Accepted
time: 1ms
memory: 3876kb

input:

4332
6464
10022
15902
35715

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
2974 1358 2553 

result:

ok correct!

Test #40:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

6367
5172
14892
20525
46208

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
4209 2158 3000 

result:

ok correct!

Test #41:

score: 0
Accepted
time: 0ms
memory: 3820kb

input:

1298
8915
2692
19029
42565

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1199 99 4408 

result:

ok correct!

Test #42:

score: 0
Accepted
time: 0ms
memory: 3736kb

input:

3768
2175
7703
7952
17073

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
3601 167 1004 

result:

ok correct!

Test #43:

score: 0
Accepted
time: 1ms
memory: 3804kb

input:

4832
7089
11775
16899
38389

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
2721 2111 2489 

result:

ok correct!

Test #44:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

834
10643
8003
24983
55389

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
3697 203 5220 

result:

ok correct!

Test #45:

score: 0
Accepted
time: 0ms
memory: 3744kb

input:

3706
6183
9637
10987
25463

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1481 2225 1264 

result:

ok correct!

Test #46:

score: 0
Accepted
time: 1ms
memory: 3880kb

input:

6321
2334
7810
9437
20817

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
4769 1552 391 

result:

ok correct!

Test #47:

score: 0
Accepted
time: 1ms
memory: 3880kb

input:

5209
6873
14007
15370
35963

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1620 3589 1642 

result:

ok correct!

Test #48:

score: 0
Accepted
time: 1ms
memory: 3820kb

input:

7788
8252
22228
17640
42734

output:

1 1 0 
0 1 2 
2 3 0 
1 2 4 
2 5 9 
1136 6652 800 

result:

ok correct!

Extra Test:

score: 0
Extra Test Passed