QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#356906#6380. LaLa and Divination MagicAlston_WanWA 0ms3984kbC++141.8kb2024-03-18 15:42:262024-03-18 15:42:27

详细

Test #1:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #2:

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

input:

3 3
101
011
111

output:

11
0 1 4
0 2 4
0 2 3
1 0 4
1 2 4
1 2 3
2 0 4
2 0 2
2 1 4
2 1 2
2 2 4

result:

ok Kout = 11, Kans = 6

Test #3:

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

input:

2 1
0
1

output:

0

result:

ok Kout = 0, Kans = 0

Test #4:

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

input:

2 1
0
1

output:

0

result:

ok Kout = 0, Kans = 0

Test #5:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #6:

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

input:

2 1
0
1

output:

0

result:

ok Kout = 0, Kans = 0

Test #7:

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

input:

2 1
0
1

output:

0

result:

ok Kout = 0, Kans = 0

Test #8:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #9:

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

input:

1 1
1

output:

1
0 0 4

result:

ok Kout = 1, Kans = 1

Test #10:

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

input:

1 1
0

output:

1
0 0 1

result:

ok Kout = 1, Kans = 1

Test #11:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #12:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #13:

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

input:

2 4
0111
0010

output:

28
0 0 1
0 1 3
0 1 1
0 2 4
0 2 3
0 2 1
0 3 3
0 3 1
1 0 2
1 0 1
1 2 4
1 2 3
1 3 2
1 3 3
2 0 4
2 0 2
2 0 1
2 1 4
2 1 2
2 2 4
2 3 4
2 3 2
3 0 2
3 0 1
3 1 2
3 1 3
3 2 4
3 2 3

result:

ok Kout = 28, Kans = 15

Test #14:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #15:

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

input:

4 2
10
11
01
00

output:

0

result:

ok Kout = 0, Kans = 0

Test #16:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #17:

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

input:

2 4
0010
1000

output:

28
0 1 2
0 1 1
0 2 4
0 2 1
0 3 2
0 3 1
1 0 3
1 0 1
1 1 1
1 2 3
1 2 1
1 3 2
1 3 3
1 3 1
2 0 4
2 0 1
2 1 2
2 1 1
2 3 2
2 3 1
3 0 3
3 0 1
3 1 2
3 1 3
3 1 1
3 2 3
3 2 1
3 3 1

result:

ok Kout = 28, Kans = 15

Test #18:

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

input:

2 5
11101
00000

output:

41
0 1 2
0 1 3
0 2 2
0 2 3
0 3 2
0 3 1
0 4 2
0 4 3
1 0 2
1 0 3
1 2 2
1 2 3
1 3 2
1 3 1
1 4 2
1 4 3
2 0 2
2 0 3
2 1 2
2 1 3
2 3 2
2 3 1
2 4 2
2 4 3
3 0 3
3 0 1
3 1 3
3 1 1
3 2 3
3 2 1
3 3 1
3 4 3
3 4 1
4 0 2
4 0 3
4 1 2
4 1 3
4 2 2
4 2 3
4 3 2
4 3 1

result:

ok Kout = 41, Kans = 21

Test #19:

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

input:

5 4
0010
1001
0011
0101
1011

output:

-1

result:

ok Kout = -1, Kans = -1

Test #20:

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

input:

3 2
01
00
10

output:

2
0 1 1
1 0 1

result:

ok Kout = 2, Kans = 1

Test #21:

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

input:

3 2
10
11
00

output:

2
0 1 2
1 0 3

result:

ok Kout = 2, Kans = 1

Test #22:

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

input:

2 1
0
1

output:

0

result:

ok Kout = 0, Kans = 0

Test #23:

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

input:

3 27
111010110011101010011110110
010001110100000110100101101
000011111000000010011111001

output:

-1

result:

ok Kout = -1, Kans = -1

Test #24:

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

input:

3 7
1000100
0001100
0101111

output:

76
0 1 1
0 2 2
0 2 1
0 3 4
0 3 1
0 4 4
0 4 3
0 5 1
0 6 1
1 0 1
1 2 2
1 2 1
1 3 3
1 4 4
1 4 3
1 5 2
1 5 3
1 6 2
1 6 3
2 0 3
2 0 1
2 1 3
2 1 1
2 2 1
2 3 3
2 3 1
2 4 4
2 4 3
2 4 1
2 5 3
2 5 1
2 6 3
2 6 1
3 0 4
3 0 1
3 1 2
3 2 2
3 2 1
3 4 4
3 4 3
3 5 2
3 6 2
4 0 4
4 0 2
4 1 4
4 1 2
4 2 4
4 2 2
4 2 1
4 3...

result:

ok Kout = 76, Kans = 39

Test #25:

score: -100
Wrong Answer
time: 0ms
memory: 3864kb

input:

1 19
1010110011001101000

output:

1045
0 0 4
0 1 4
0 1 2
0 1 1
0 2 4
0 2 2
0 2 3
0 3 4
0 3 2
0 3 1
0 4 4
0 4 2
0 4 3
0 5 4
0 5 2
0 5 3
0 6 4
0 6 2
0 6 1
0 7 4
0 7 2
0 7 1
0 8 4
0 8 2
0 8 3
0 9 4
0 9 2
0 9 3
0 10 4
0 10 2
0 10 1
0 11 4
0 11 2
0 11 1
0 12 4
0 12 2
0 12 3
0 13 4
0 13 2
0 13 3
0 14 4
0 14 2
0 14 1
0 15 4
0 15 2
0 15 3
0...

result:

wrong answer Integer parameter [name=K] equals to 1045, violates the range [-1, 722]