QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#356903#6380. LaLa and Divination MagicAlston_WanWA 1ms5868kbC++141.7kb2024-03-18 15:38:552024-03-18 15:38:56

详细

Test #1:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #2:

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

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: 3824kb

input:

2 1
0
1

output:

0

result:

ok Kout = 0, Kans = 0

Test #4:

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

input:

2 1
0
1

output:

0

result:

ok Kout = 0, Kans = 0

Test #5:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #6:

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

input:

2 1
0
1

output:

0

result:

ok Kout = 0, Kans = 0

Test #7:

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

input:

2 1
0
1

output:

0

result:

ok Kout = 0, Kans = 0

Test #8:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #9:

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

input:

1 1
1

output:

1
0 0 4

result:

ok Kout = 1, Kans = 1

Test #10:

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

input:

1 1
0

output:

1
0 0 1

result:

ok Kout = 1, Kans = 1

Test #11:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #12:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #13:

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

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: 3752kb

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #15:

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

input:

4 2
10
11
01
00

output:

0

result:

ok Kout = 0, Kans = 0

Test #16:

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

input:

2 1
1
0

output:

0

result:

ok Kout = 0, Kans = 0

Test #17:

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

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: 3856kb

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: -100
Wrong Answer
time: 1ms
memory: 3856kb

input:

5 4
0010
1001
0011
0101
1011

output:

10
0 1 1
0 3 3
1 0 1
1 2 1
1 3 3
2 1 1
2 3 4
3 0 2
3 1 2
3 2 4

result:

wrong answer The output contains more solutions than intended.