QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#774742#3402. Box Relationsucup-team4949#AC ✓20ms4676kbC++141.4kb2024-11-23 13:47:112024-11-23 13:47:12

詳細信息

Test #1:

score: 100
Accepted
time: 20ms
memory: 4676kb

input:

3 3
X 1 2
X 2 3
I 1 3
2 2
X 1 2
X 2 1
10 18
X 10 4
X 10 4
Y 2 8
X 7 4
Z 10 7
X 5 10
Z 2 10
X 6 10
I 8 3
X 10 9
Z 2 10
Y 5 4
Z 2 10
Y 10 3
Z 4 8
X 7 4
Y 10 4
X 5 8
828 99000
Y 757 547
X 47 555
Z 78 768
X 784 676
X 368 320
X 194 468
X 31 366
Z 105 405
Z 679 327
X 406 570
X 39 530
Y 69 130
Y 624 190
X ...

output:

Case 1: IMPOSSIBLE

Case 2: IMPOSSIBLE

Case 3: POSSIBLE
1 2 3 21 22 23
4 5 6 24 25 26
7 45 8 49 54 47
57 44 9 60 52 27
10 11 12 28 29 30
13 14 15 31 32 33
16 17 55 34 35 58
42 39 41 50 53 48
56 18 19 59 36 37
43 20 40 51 38 46

Case 4: IMPOSSIBLE

Case 5: POSSIBLE
1 2 3 214 215 216
4 5 6 217 218 21...

result:

ok Accepted! (29 test cases)