QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#214769#7178. Bishopsucup-team2006#TL 118ms13032kbC++171.6kb2023-10-14 23:47:242023-10-14 23:47:24

详细

Test #1:

score: 100
Accepted
time: 116ms
memory: 13032kb

input:

2 5

output:

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

result:

ok n: 2, m: 5, bishops: 6

Test #2:

score: 0
Accepted
time: 118ms
memory: 12944kb

input:

5 5

output:

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

result:

ok n: 5, m: 5, bishops: 8

Test #3:

score: -100
Time Limit Exceeded

input:

100000 100000

output:


result: