QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#20971#2634. Connect the DotsqwqAC ✓4ms3760kbC++2.6kb2022-02-23 01:00:482022-05-03 12:09:59

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 3616kb

input:

3 12 13 4
2 6 7 8
1 11 15 16
5 9 10 14

output:

11

result:

ok single line: '11'

Test #2:

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

input:

2 4 15 3
6 8 5 7
10 12 9 11
1 14 13 16

output:

14

result:

ok single line: '14'

Test #3:

score: 0
Accepted
time: 3ms
memory: 3600kb

input:

4 2 3 15
6 8 7 11
14 16 9 5
1 10 12 13

output:

15

result:

ok single line: '15'

Test #4:

score: 0
Accepted
time: 3ms
memory: 3612kb

input:

5 9 2 12
1 10 15 4
8 11 13 16
14 6 7 3

output:

12

result:

ok single line: '12'

Test #5:

score: 0
Accepted
time: 3ms
memory: 3612kb

input:

12 4 8 9
2 16 7 15
11 1 10 14
3 13 5 6

output:

11

result:

ok single line: '11'

Test #6:

score: 0
Accepted
time: 3ms
memory: 3700kb

input:

4 14 7 5
3 13 15 8
2 12 16 9
1 11 6 10

output:

9

result:

ok single line: '9'

Test #7:

score: 0
Accepted
time: 2ms
memory: 3680kb

input:

1 2 3 4
10 11 12 5
9 16 6 13
8 7 15 14

output:

6

result:

ok single line: '6'

Test #8:

score: 0
Accepted
time: 3ms
memory: 3696kb

input:

4 7 14 5
3 13 15 8
2 12 16 9
1 11 6 10

output:

9

result:

ok single line: '9'

Test #9:

score: 0
Accepted
time: 3ms
memory: 3616kb

input:

1 3 4 2
15 11 6 16
8 10 7 9
14 12 5 13

output:

14

result:

ok single line: '14'

Test #10:

score: 0
Accepted
time: 3ms
memory: 3656kb

input:

1 12 14 5
10 3 7 16
15 8 2 9
6 13 11 4

output:

14

result:

ok single line: '14'

Test #11:

score: 0
Accepted
time: 3ms
memory: 3692kb

input:

1 2 3 4
8 12 9 13
7 16 15 14
6 11 10 5

output:

8

result:

ok single line: '8'

Test #12:

score: 0
Accepted
time: 3ms
memory: 3608kb

input:

4 9 15 5
3 8 11 10
2 13 7 12
1 16 14 6

output:

10

result:

ok single line: '10'

Test #13:

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

input:

4 15 9 5
3 8 11 10
2 13 7 12
1 16 14 6

output:

10

result:

ok single line: '10'

Test #14:

score: 0
Accepted
time: 3ms
memory: 3624kb

input:

2 9 3 14
11 4 5 10
6 16 12 7
1 13 8 15

output:

13

result:

ok single line: '13'

Test #15:

score: 0
Accepted
time: 3ms
memory: 3680kb

input:

1 2 3 4
8 9 10 11
7 15 16 12
6 14 13 5

output:

7

result:

ok single line: '7'

Test #16:

score: 0
Accepted
time: 3ms
memory: 3592kb

input:

15 14 12 13
4 9 16 3
6 2 7 10
5 1 11 8

output:

12

result:

ok single line: '12'

Test #17:

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

input:

4 2 6 14
7 8 10 3
15 11 9 12
13 5 16 1

output:

14

result:

ok single line: '14'

Test #18:

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

input:

6 11 10 4
2 5 16 12
3 14 8 1
15 7 9 13

output:

14

result:

ok single line: '14'

Test #19:

score: 0
Accepted
time: 3ms
memory: 3672kb

input:

2 1 15 11
13 12 16 9
4 14 3 7
6 5 10 8

output:

14

result:

ok single line: '14'

Test #20:

score: 0
Accepted
time: 4ms
memory: 3652kb

input:

14 15 2 16
4 5 7 6
9 10 11 1
13 3 8 12

output:

11

result:

ok single line: '11'

Test #21:

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

input:

11 2 12 14
8 6 9 1
7 15 5 3
4 16 10 13

output:

12

result:

ok single line: '12'

Test #22:

score: 0
Accepted
time: 2ms
memory: 3616kb

input:

6 2 10 5
9 16 7 13
1 15 12 14
11 4 3 8

output:

12

result:

ok single line: '12'

Test #23:

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

input:

1 13 7 3
4 14 6 15
9 8 2 16
10 12 5 11

output:

13

result:

ok single line: '13'

Test #24:

score: 0
Accepted
time: 3ms
memory: 3596kb

input:

13 16 12 11
15 8 7 6
14 9 1 4
5 2 3 10

output:

11

result:

ok single line: '11'

Test #25:

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

input:

4 15 16 1
13 9 2 12
3 5 7 10
11 8 6 14

output:

13

result:

ok single line: '13'

Test #26:

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

input:

10 5 15 6
14 8 13 9
3 2 16 12
1 4 11 7

output:

13

result:

ok single line: '13'

Test #27:

score: 0
Accepted
time: 3ms
memory: 3612kb

input:

14 12 5 13
3 2 4 15
10 8 16 7
9 1 11 6

output:

14

result:

ok single line: '14'

Test #28:

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

input:

7 3 16 1
15 11 9 4
13 14 10 5
8 12 6 2

output:

14

result:

ok single line: '14'

Test #29:

score: 0
Accepted
time: 2ms
memory: 3612kb

input:

11 4 7 10
3 12 13 6
14 15 9 2
5 8 1 16

output:

13

result:

ok single line: '13'

Test #30:

score: 0
Accepted
time: 3ms
memory: 3620kb

input:

1 6 12 11
13 15 5 2
7 10 16 9
4 3 8 14

output:

12

result:

ok single line: '12'

Test #31:

score: 0
Accepted
time: 3ms
memory: 3704kb

input:

8 7 6 16
15 9 12 5
14 11 10 4
1 2 3 13

output:

8

result:

ok single line: '8'

Test #32:

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

input:

8 12 11 9
16 15 10 5
13 1 14 3
6 4 2 7

output:

13

result:

ok single line: '13'

Test #33:

score: 0
Accepted
time: 4ms
memory: 3760kb

input:

15 10 9 1
12 5 16 11
7 13 2 14
4 3 8 6

output:

12

result:

ok single line: '12'

Test #34:

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

input:

9 15 10 2
4 14 8 3
1 16 12 6
13 5 11 7

output:

14

result:

ok single line: '14'