QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#588953#4988. Ace Arbitership2077AC ✓0ms3964kbC++23432b2024-09-25 15:24:242024-09-25 15:24:26

Judging History

你现在查看的是最新测评结果

  • [2024-09-25 15:24:26]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3964kb
  • [2024-09-25 15:24:24]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int n,x,y,lx,ly;
int main(){
    scanf("%d",&n);
    for (int i=1;i<=n;i++){
        scanf("%d-%d",&x,&y);
        if ((x+y)%4==0||(x+y)%4==3) swap(x,y);
        if (lx>x||ly>y||x==11&&y==11) return printf("error %d\n",i),0;
        if ((lx==11||ly==11)&&(lx!=x||ly!=y))
            return printf("error %d\n",i),0;
        lx=x;ly=y;
    }
    puts("ok");
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
0-0
1-0
1-0
2-0
1-2

output:

ok

result:

ok single line: 'ok'

Test #2:

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

input:

2
1-0
0-0

output:

error 2

result:

ok single line: 'error 2'

Test #3:

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

input:

4
11-0
11-0
11-1
11-11

output:

error 3

result:

ok single line: 'error 3'

Test #4:

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

input:

4
0-0
1-0
0-2
2-1

output:

error 3

result:

ok single line: 'error 3'

Test #5:

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

input:

1
1-5

output:

ok

result:

ok single line: 'ok'

Test #6:

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

input:

100
6-10
11-8
9-3
5-8
3-8
8-3
8-0
10-6
2-7
2-9
11-9
1-7
11-2
1-1
11-9
6-11
1-2
8-2
3-4
11-3
3-4
6-7
9-6
3-8
7-6
4-7
4-11
11-6
11-9
7-7
9-0
3-0
8-1
9-2
5-7
0-11
9-0
11-0
8-4
8-5
2-2
8-2
8-2
5-8
7-1
5-10
6-8
3-8
0-9
5-11
11-2
1-8
11-4
6-3
10-1
8-3
8-5
3-0
4-0
6-1
9-10
11-4
10-7
6-0
0-11
7-9
1-2
11-0
8...

output:

error 2

result:

ok single line: 'error 2'

Test #7:

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

input:

1
9-9

output:

ok

result:

ok single line: 'ok'

Test #8:

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

input:

30
1-1
1-1
1-1
1-1
1-2
3-4
3-4
4-4
4-4
4-4
5-4
4-7
4-7
4-7
5-7
5-7
8-5
8-5
8-5
9-5
9-5
9-5
9-5
9-5
6-9
7-9
9-8
10-8
9-11
9-11

output:

ok

result:

ok single line: 'ok'

Test #9:

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

input:

30
0-0
0-1
0-1
0-2
0-2
0-2
0-2
3-0
3-0
3-0
4-0
4-0
4-0
4-0
0-5
0-5
0-5
0-5
0-5
0-6
7-0
7-0
7-0
8-0
8-0
8-0
0-9
0-9
0-10
11-0

output:

ok

result:

ok single line: 'ok'

Test #10:

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

input:

30
1-0
1-0
1-1
2-1
2-2
2-2
3-2
3-3
3-4
3-4
3-4
3-4
3-4
4-4
5-4
5-4
5-4
5-5
6-6
6-6
7-7
7-8
9-8
9-8
9-9
9-10
10-10
10-11
10-11
10-11

output:

ok

result:

ok single line: 'ok'

Test #11:

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

input:

30
0-0
0-0
0-0
1-0
1-2
1-2
2-2
2-2
2-2
2-2
3-4
3-5
3-5
3-5
6-3
7-3
7-1
3-8
3-8
4-8
4-8
9-4
9-4
5-10
6-10
6-10
6-10
10-7
9-10
9-11

output:

error 17

result:

ok single line: 'error 17'

Test #12:

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

input:

30
0-0
0-0
0-0
0-1
0-1
0-1
0-2
1-2
0-2
3-0
4-0
4-0
4-0
4-0
4-0
0-5
0-5
0-6
0-6
7-0
7-0
8-0
0-9
0-9
0-10
0-10
0-10
0-10
11-0
11-0

output:

error 8

result:

ok single line: 'error 8'

Test #13:

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

input:

30
1-1
1-1
2-1
2-1
2-2
2-3
3-3
3-3
4-3
4-4
5-4
5-6
6-6
6-6
6-6
7-7
7-7
7-8
7-8
7-8
8-8
8-8
8-8
8-8
9-8
9-9
9-9
10-9
10-11
10-11

output:

ok

result:

ok single line: 'ok'

Test #14:

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

input:

30
0-0
0-0
1-0
1-1
1-2
1-3
3-2
4-2
2-5
2-5
2-5
3-5
6-3
6-3
6-4
6-4
4-7
4-7
7-6
8-6
6-9
6-9
6-9
6-9
6-9
7-9
7-9
8-11
8-11
8-11

output:

ok

result:

ok single line: 'ok'

Test #15:

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

input:

30
0-1
0-1
0-2
3-0
3-0
3-0
3-0
4-0
0-5
0-5
0-5
0-5
0-5
0-6
0-6
0-6
7-0
7-0
7-0
8-0
0-9
0-9
0-9
0-10
0-10
0-10
0-10
11-0
11-0
11-0

output:

ok

result:

ok single line: 'ok'

Test #16:

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

input:

30
1-0
1-0
1-0
1-1
1-1
1-1
1-2
1-2
1-2
1-2
1-2
1-2
2-2
3-3
3-3
4-3
4-3
4-3
4-3
5-5
6-6
6-6
7-6
7-6
7-7
7-8
8-9
9-9
10-10
11-10

output:

ok

result:

ok single line: 'ok'

Test #17:

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

input:

4
11-0
11-1
2-11
3-11

output:

error 2

result:

ok single line: 'error 2'

Test #18:

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

input:

1
11-11

output:

error 1

result:

ok single line: 'error 1'

Test #19:

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

input:

100
0-0
0-0
0-0
0-0
0-0
0-0
1-0
1-0
1-0
1-0
1-0
1-0
2-0
2-0
2-0
2-0
2-0
0-3
0-3
0-3
0-3
0-3
0-3
0-3
0-3
0-3
0-3
0-4
0-4
0-4
0-4
5-0
5-0
5-0
5-0
5-0
5-0
6-0
6-0
6-0
6-0
0-7
0-7
0-7
0-7
1-7
1-7
1-7
1-7
1-7
1-7
1-7
8-1
8-1
8-1
8-1
8-2
8-2
8-2
8-2
8-2
8-2
8-2
8-2
3-8
3-8
3-8
3-8
3-9
3-9
3-9
3-9
3-9
9-4
...

output:

ok

result:

ok single line: 'ok'

Test #20:

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

input:

100
0-0
0-0
0-0
0-1
0-1
0-1
0-1
0-1
0-1
0-1
0-1
0-1
1-1
1-1
1-1
1-1
1-1
1-1
1-1
1-1
1-2
1-2
1-2
2-2
2-2
2-2
3-2
3-2
3-2
3-2
3-3
3-3
3-3
3-3
3-4
3-4
3-4
3-4
3-4
3-4
4-4
4-4
5-4
5-4
5-4
5-4
5-4
5-4
5-4
5-4
5-4
5-4
5-5
5-5
6-5
6-5
6-5
6-6
6-6
6-6
6-6
6-7
6-7
6-7
6-7
7-7
7-7
7-7
7-7
7-7
7-8
7-8
7-8
7-8
...

output:

ok

result:

ok single line: 'ok'

Test #21:

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

input:

44
0-0
0-0
0-0
0-0
1-0
1-0
2-0
2-0
1-2
1-2
2-2
2-2
3-2
3-2
3-2
4-2
4-2
2-5
2-6
2-6
7-2
8-2
2-9
2-9
3-9
3-9
3-9
9-4
9-4
9-4
9-4
9-5
9-5
9-5
5-10
5-10
5-10
5-10
6-10
6-10
6-10
11-7
11-7
11-7

output:

ok

result:

ok single line: 'ok'

Test #22:

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

input:

40
0-0
0-0
0-1
1-1
2-0
2-0
2-0
1-2
1-3
1-3
1-3
4-1
4-2
4-2
4-2
4-2
4-2
4-2
3-4
3-4
4-4
5-4
6-4
6-4
6-4
4-7
4-7
8-5
8-5
8-6
8-6
8-8
8-8
8-8
8-9
8-9
8-10
11-9
11-9
11-9

output:

error 5

result:

ok single line: 'error 5'

Test #23:

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

input:

26
1-0
1-2
2-3
2-3
3-3
3-3
3-4
4-4
4-4
4-4
4-4
5-4
5-4
5-5
5-5
6-5
7-5
6-5
6-5
7-5
7-5
5-8
5-9
10-5
10-5
11-5

output:

error 18

result:

ok single line: 'error 18'

Test #24:

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

input:

67
0-0
0-1
0-1
0-1
0-1
0-1
0-2
0-2
0-2
0-2
0-2
0-2
3-0
3-0
3-0
4-0
4-0
4-0
4-0
4-0
4-0
4-0
0-5
0-5
0-5
0-5
0-5
0-6
0-6
0-6
0-6
0-6
0-6
0-6
7-0
7-0
7-1
7-1
7-1
7-1
7-1
2-7
2-8
8-5
8-3
8-3
8-3
8-3
8-3
8-3
8-4
8-4
8-4
8-4
4-9
4-9
5-9
5-9
5-7
5-9
10-5
10-5
10-5
10-5
10-5
11-5
11-5

output:

error 44

result:

ok single line: 'error 44'

Test #25:

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

input:

89
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
1-0
1-0
1-0
1-0
1-0
1-0
1-0
1-0
1-0
1-0
1-0
2-0
2-0
2-0
2-0
0-3
0-3
0-3
0-3
0-3
0-4
0-4
0-4
0-4
0-4
0-4
0-4
0-4
5-0
5-0
5-0
5-0
6-0
6-0
6-0
6-0
6-0
6-0
6-0
0-7
0-7
1-7
0-7
0-7
0-7
0-7
0-7
0-7
0-8
0-8
0-8
0-8
0-8
9-0
9-0
9-0
9-0
9-0
9-0
9...

output:

error 58

result:

ok single line: 'error 58'

Test #26:

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

input:

88
0-0
0-0
0-0
0-1
0-1
0-1
0-1
0-1
1-1
1-1
2-1
2-1
2-1
2-2
2-2
2-2
2-2
3-2
3-2
3-2
3-2
3-2
3-3
3-3
3-3
3-4
3-4
3-4
3-4
4-4
4-4
4-4
4-4
4-4
5-4
5-4
5-4
5-4
5-4
5-4
5-4
5-4
5-5
5-5
5-5
5-5
5-5
5-5
6-5
6-5
6-5
6-6
6-6
6-6
6-6
6-7
6-7
6-7
6-7
6-7
6-7
7-7
7-7
7-7
7-8
7-8
7-8
8-8
8-8
8-9
8-9
8-9
8-9
8-9
9...

output:

ok

result:

ok single line: 'ok'

Test #27:

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

input:

77
0-0
0-0
0-1
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
1-0
1-0
1-0
1-0
1-0
1-0
1-0
1-0
2-1
2-0
2-0
2-0
2-0
0-3
0-3
0-4
0-3
0-3
0-4
0-4
5-0
5-0
5-0
5-0
5-0
5-0
5-0
5-0
5-0
6-0
6-0
6-0
7-0
1-7
0-7
0-7
0-7
0-7
0-7
0-8
0-8
0-11
0-8
0-8
0-8
0-8
0-8
0-8
9-0
9-0
9-0
9-0
9-0
9-0
9-0
10-0
10-0
10-0
9-0
10-0
...

output:

error 4

result:

ok single line: 'error 4'

Test #28:

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

input:

10
2-0
0-0
0-0
3-0
4-0
0-5
8-0
0-9
0-9
11-0

output:

error 2

result:

ok single line: 'error 2'

Test #29:

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

input:

76
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-1
0-1
0-1
0-1
0-1
0-1
0-1
0-1
0-1
0-2
0-2
3-0
3-0
3-0
3-0
3-0
3-0
3-0
3-0
3-0
3-0
4-0
4-0
0-0
4-0
4-0
4-0
4-0
4-0
0-5
0-5
0-5
0-5
1-5
0-5
0-6
0-6
0-6
0-6
0-6
0-6
7-0
7-0
7-0
7-0
8-0
7-0
7-0
8-0
8-0
0-9
0-9
0-9
0-10
0-10
0-10
0-10
0-10
0-10
0-10
0-10
11-0
11-0...

output:

error 33

result:

ok single line: 'error 33'

Test #30:

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

input:

10
1-0
3-0
0-3
0-3
0-3
5-0
6-0
0-6
0-7
0-8

output:

error 2

result:

ok single line: 'error 2'

Test #31:

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

input:

16
1-1
2-1
3-2
3-2
3-3
3-3
4-5
5-5
8-5
8-5
9-6
8-6
10-6
10-8
7-10
7-10

output:

error 11

result:

ok single line: 'error 11'

Test #32:

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

input:

93
0-0
0-0
0-0
0-0
0-1
0-1
0-1
0-1
0-2
0-2
0-2
2-1
2-1
2-1
2-1
2-1
2-1
2-2
2-2
2-2
2-2
2-2
2-2
2-2
2-2
2-2
3-2
3-2
3-2
3-2
3-3
3-3
3-3
3-3
3-3
3-3
3-3
3-3
3-3
3-4
3-5
3-5
3-5
3-5
3-5
5-4
5-4
5-4
6-4
6-4
6-4
5-6
5-6
5-6
5-6
5-6
5-7
5-7
5-7
5-7
5-7
5-7
5-7
8-5
8-5
8-5
8-5
8-5
9-5
9-5
9-5
9-5
6-9
6-9
6...

output:

ok

result:

ok single line: 'ok'

Test #33:

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

input:

26
0-0
0-0
0-0
0-1
0-1
0-2
0-2
0-2
3-0
3-0
3-0
3-0
3-0
4-0
4-0
4-0
4-0
0-4
0-6
7-0
7-0
0-9
0-10
0-10
0-10
11-0

output:

error 18

result:

ok single line: 'error 18'

Test #34:

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

input:

22
0-0
0-1
0-1
0-1
0-1
1-1
1-1
3-1
1-4
1-4
4-3
4-5
4-3
4-4
4-4
5-4
5-6
5-5
6-5
9-6
6-11
7-11

output:

error 13

result:

ok single line: 'error 13'

Test #35:

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

input:

51
0-0
0-1
0-1
0-1
0-1
0-1
0-1
0-2
0-2
0-2
3-0
3-0
3-0
3-0
3-0
3-0
3-0
3-0
3-1
4-0
4-0
4-0
4-0
4-0
4-0
4-0
4-0
0-5
0-5
0-5
0-6
0-6
0-6
0-6
0-6
0-6
7-0
7-0
8-0
8-0
8-0
8-0
0-9
8-0
0-9
0-10
0-10
0-10
0-10
11-0
11-0

output:

error 20

result:

ok single line: 'error 20'

Test #36:

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

input:

81
0-0
0-0
0-0
0-0
0-0
0-0
0-1
0-1
1-1
1-1
1-1
1-1
1-1
1-1
3-1
2-1
2-1
2-1
2-1
2-1
3-1
3-1
1-4
1-4
2-4
2-4
5-2
5-2
5-2
5-2
5-2
5-2
5-2
5-2
5-3
5-3
5-3
3-6
3-6
3-6
3-6
3-6
3-6
3-7
3-7
3-7
3-7
3-7
3-7
8-3
8-3
8-3
8-3
8-3
8-3
8-3
8-3
8-4
8-4
8-4
8-4
5-9
5-9
5-9
5-9
9-6
9-6
10-6
10-6
10-6
10-6
10-6
10-6...

output:

error 16

result:

ok single line: 'error 16'

Test #37:

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

input:

50
0-0
0-0
0-0
0-0
0-0
0-1
0-1
0-2
0-2
2-1
2-1
2-1
2-1
3-1
3-1
3-1
1-4
1-4
1-5
1-5
5-2
5-2
5-3
5-3
4-5
4-5
4-6
7-4
7-5
7-5
7-5
7-5
6-7
8-8
8-8
9-8
9-8
10-8
9-10
9-10
9-10
9-10
10-10
10-10
10-10
10-10
10-10
10-11
10-11
10-11

output:

ok

result:

ok single line: 'ok'

Test #38:

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

input:

18
2-1
0-1
0-2
3-0
3-1
6-0
4-0
0-5
0-6
7-3
8-0
0-9
0-9
0-9
0-7
0-10
0-10
0-10

output:

error 2

result:

ok single line: 'error 2'

Test #39:

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

input:

58
0-0
0-0
0-0
1-0
1-0
1-0
1-0
1-0
1-0
1-0
1-0
1-1
2-0
2-0
2-0
2-0
0-3
0-3
0-3
0-3
0-4
0-4
0-4
0-4
0-4
0-4
5-0
5-0
5-0
6-0
6-0
6-0
6-0
6-0
0-7
0-7
0-7
0-8
0-8
0-8
0-8
0-8
0-8
0-8
9-0
9-0
9-0
9-0
9-0
9-0
10-0
9-0
10-0
10-0
10-0
10-0
0-11
0-11

output:

error 13

result:

ok single line: 'error 13'

Test #40:

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

input:

99
0-0
0-0
0-0
0-0
0-0
0-0
0-0
0-0
1-0
1-0
1-0
1-0
1-1
1-1
1-1
1-1
1-1
1-1
1-1
1-2
1-2
1-2
1-2
1-2
1-2
1-3
1-3
1-3
1-3
1-3
1-3
1-3
4-1
4-0
4-1
4-1
4-1
4-1
4-1
5-1
5-1
5-1
5-1
5-1
5-1
5-1
5-1
5-1
5-1
1-6
1-6
1-6
1-6
1-6
1-6
1-6
1-7
1-7
1-7
1-7
1-7
1-7
8-1
8-1
8-1
9-1
9-1
9-1
9-1
9-1
9-2
9-1
9-1
9-1
9...

output:

error 34

result:

ok single line: 'error 34'