QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#124875#5520. Distance ParitiesGuanYunchangWA 0ms5628kbC++171.6kb2023-07-15 17:18:122023-07-15 17:18:16

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 5628kb

input:

3
3
011
101
110
4
0100
1000
0001
0010
5
01010
10101
01010
10101
01010

output:

YES
3
1 1
1 2
1 3
2 2
2 3
3 3
NO
YES
10
1 1
1 2
1 3
1 4
1 5
2 2
2 3
2 4
2 5
3 3
3 4
3 5
4 4
4 5
5 5

result:

wrong answer Self-loops are not allowed (test case 1)