QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#174048#7178. Bishopsucup-team1002#WA 18ms5188kbC++145.1kb2023-09-10 03:54:202023-09-10 03:54:20

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3604kb

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: 1ms
memory: 3672kb

input:

5 5

output:

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

result:

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

Test #3:

score: -100
Wrong Answer
time: 18ms
memory: 5188kb

input:

100000 100000

output:

150000
100000 1
100000 3
100000 5
100000 7
100000 9
100000 11
100000 13
100000 15
100000 17
100000 19
100000 21
100000 23
100000 25
100000 27
100000 29
100000 31
100000 33
100000 35
100000 37
100000 39
100000 41
100000 43
100000 45
100000 47
100000 49
100000 51
100000 53
100000 55
100000 57
100000 5...

result:

wrong answer Participant's answer is not optimal (150000 < 199998)