QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#216683#6442. Secret of Tianqiu ValleyxwlWA 0ms3964kbC++202.6kb2023-10-15 20:53:282023-10-15 20:53:28

詳細信息

Test #1:

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

input:

2
5
00000
3
001

output:

7
2 5 1 2 3 4 2
0

result:

ok all puzzle solved (2 test cases)

Test #2:

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

input:

7
3
000
3
100
3
010
3
110
3
001
3
101
3
011

output:

1
2
0
0
0
0
0
0

result:

ok all puzzle solved (7 test cases)

Test #3:

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

input:

15
4
0000
4
1000
4
0100
4
1100
4
0010
4
1010
4
0110
4
1110
4
0001
4
1001
4
0101
4
1101
4
0011
4
1011
4
0111

output:

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

result:

ok all puzzle solved (15 test cases)

Test #4:

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

input:

31
5
00000
5
10000
5
01000
5
11000
5
00100
5
10100
5
01100
5
11100
5
00010
5
10010
5
01010
5
11010
5
00110
5
10110
5
01110
5
11110
5
00001
5
10001
5
01001
5
11001
5
00101
5
10101
5
01101
5
11101
5
00011
5
10011
5
01011
5
11011
5
00111
5
10111
5
01111

output:

7
2 5 1 2 3 4 2
0
6
4 1 2 3 4 2
1
4
2
2 4
0
1
5
6
5 1 2 3 4 2
0
7
3 5 1 2 3 4 2
0
0
0
4
2 3 4 2
0
0
0
1
3
0
0
0
3
4 5 3
0
0
1
2
0
0
0
0
0
5
1 2 3 4 2

result:

wrong answer solvable puzzle unsolved (test case 2)