QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#616316#9444. Again Permutation Problemucup-team5064#WA 1278ms38712kbC++204.2kb2024-10-06 01:40:542024-10-06 01:40:56

詳細信息

Test #1:

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

input:

3 2
1 2 3
2 3 1

output:

4

result:

ok 1 number(s): "4"

Test #2:

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

input:

5 2
3 4 5 1 2
1 5 4 3 2

output:

50

result:

ok 1 number(s): "50"

Test #3:

score: 0
Accepted
time: 1278ms
memory: 38712kb

input:

30 12
1 2 9 4 5 6 7 8 3 10 11 12 19 14 15 25 17 18 20 26 21 22 23 24 16 29 27 28 13 30
9 2 27 4 5 10 7 8 1 25 11 12 24 14 15 16 17 18 19 20 21 22 23 28 6 26 3 13 29 30
1 5 3 29 2 6 7 8 9 10 11 12 13 16 15 18 17 14 19 20 21 22 28 27 25 26 24 23 4 30
7 2 3 25 5 6 1 28 21 15 11 12 13 14 10 17 16 18 19 ...

output:

701414999

result:

ok 1 number(s): "701414999"

Test #4:

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

input:

1 1
1

output:

0

result:

ok 1 number(s): "0"

Test #5:

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

input:

2 1
2 1

output:

1

result:

ok 1 number(s): "1"

Test #6:

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

input:

5 1
4 2 3 1 5

output:

5

result:

ok 1 number(s): "5"

Test #7:

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

input:

6 3
4 2 3 6 5 1
1 4 3 2 6 5
1 2 4 3 5 6

output:

5400

result:

ok 1 number(s): "5400"

Test #8:

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

input:

6 1
1 5 3 4 2 6

output:

5

result:

ok 1 number(s): "5"

Test #9:

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

input:

5 3
1 4 3 2 5
1 2 4 5 3
5 2 3 4 1

output:

600

result:

ok 1 number(s): "600"

Test #10:

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

input:

6 2
2 1 3 4 5 6
1 2 3 4 5 6

output:

1

result:

ok 1 number(s): "1"

Test #11:

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

input:

6 4
1 6 3 4 5 2
2 1 4 3 5 6
2 6 5 4 3 1
2 1 6 3 5 4

output:

5400

result:

ok 1 number(s): "5400"

Test #12:

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

input:

5 2
3 2 1 4 5
1 5 3 2 4

output:

21

result:

ok 1 number(s): "21"

Test #13:

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

input:

3 3
1 3 2
3 1 2
1 3 2

output:

9

result:

ok 1 number(s): "9"

Test #14:

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

input:

4 2
3 1 4 2
4 2 1 3

output:

72

result:

ok 1 number(s): "72"

Test #15:

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

input:

3 1
2 3 1

output:

4

result:

ok 1 number(s): "4"

Test #16:

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

input:

5 1
2 4 3 5 1

output:

18

result:

ok 1 number(s): "18"

Test #17:

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

input:

5 4
3 5 2 4 1
1 2 5 4 3
5 4 3 2 1
4 2 3 1 5

output:

600

result:

ok 1 number(s): "600"

Test #18:

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

input:

5 1
1 5 3 4 2

output:

5

result:

ok 1 number(s): "5"

Test #19:

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

input:

5 1
5 2 3 4 1

output:

7

result:

ok 1 number(s): "7"

Test #20:

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

input:

4 2
4 3 1 2
3 4 2 1

output:

12

result:

ok 1 number(s): "12"

Test #21:

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

input:

6 3
2 3 1 4 5 6
1 2 3 4 6 5
1 4 3 2 5 6

output:

168

result:

ok 1 number(s): "168"

Test #22:

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

input:

6 2
3 4 1 2 5 6
2 3 1 4 5 6

output:

36

result:

ok 1 number(s): "36"

Test #23:

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

input:

4 2
1 3 4 2
4 2 3 1

output:

72

result:

ok 1 number(s): "72"

Test #24:

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

input:

3 2
2 1 3
2 3 1

output:

9

result:

ok 1 number(s): "9"

Test #25:

score: -100
Wrong Answer
time: 1ms
memory: 6000kb

input:

6 2
1 5 4 6 2 3
2 6 4 3 5 1

output:

2700

result:

wrong answer 1st numbers differ - expected: '5400', found: '2700'