QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#171774#7178. Bishopsucup-team974#TL 2ms3716kbC++176.4kb2023-09-09 17:34:492023-09-09 17:34:49

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3656kb

input:

2 5

output:

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

result:

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

Test #2:

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

input:

5 5

output:

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

result:

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

Test #3:

score: -100
Time Limit Exceeded

input:

100000 100000

output:


result: