QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#638725#7031. Supreme CommandZhaoZiLongAC ✓397ms79072kbC++205.0kb2024-10-13 16:44:332024-10-13 16:44:34

詳細信息

Test #1:

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

input:

1
4 9
3 4
2 1
4 2
1 3
L 2
? 1
? 2
R 1
? 1
? 3
!
U 3
!

output:

3 2
2 1
3 3
4 2
0
3

result:

ok 6 lines

Test #2:

score: 0
Accepted
time: 230ms
memory: 8356kb

input:

500
2000 2000
492 502
1394 1025
980 1484
1135 599
760 242
575 1393
833 341
1364 453
1692 1515
1303 7
1429 1519
887 86
205 1874
1483 1797
649 1677
1717 298
416 1673
1696 896
1998 1154
638 1725
667 96
1467 1788
1438 759
285 1987
1985 736
95 140
596 1076
1089 238
1212 247
1287 1705
891 1237
941 622
930...

output:

170 1229
0
1610 1081
0
616 1509
0
1419 1109
0
1584 1103
0
459 1193
0
1891 1713
0
806 187
0
115 81
0
1035 378
0
1673 276
0
529 1976
0
1380 639
0
397 1375
0
144 806
0
579 495
0
1817 1065
0
369 828
0
1226 790
0
740 1967
0
37 311
0
1466 391
0
160 898
0
97 1023
0
1086 754
0
670 1932
0
831 909
0
1964 255
...

result:

ok 333000 lines

Test #3:

score: 0
Accepted
time: 382ms
memory: 77928kb

input:

4
300000 300000
80970 187487
294038 86632
10049 18427
97971 56733
248346 155658
75748 147098
271323 190205
76134 226265
76477 80456
256736 133100
161354 25074
238317 189162
95678 281762
40568 292572
1464 5702
173488 154848
218234 95786
258378 278765
145920 82902
4863 55628
114808 187456
83016 166159...

output:

287799 284434
0
176534 9959
0
206748 80053
0
132450 71141
0
182472 63837
0
50205 137287
0
28907 154017
0
92821 240433
0
261606 217699
0
145727 281330
0
56 189849
0
152538 296794
0
106827 98478
0
44987 46354
0
199410 263116
0
173533 3989
0
296407 251081
0
194428 130556
0
146819 198385
0
270813 257587...

result:

ok 333333 lines

Test #4:

score: 0
Accepted
time: 397ms
memory: 53912kb

input:

5
200000 200000
83663 150834
52609 106576
76810 195918
138933 98816
110278 145244
135053 163738
135741 194310
128700 127220
83979 109363
148309 53887
121241 91879
190186 75581
132110 176318
132515 198698
53610 67714
108291 88174
100902 97699
144230 45429
144942 154479
132992 48008
131132 117094
1602...

output:

14826 200000
191167 65452
42684 76298
30428 141566
57556 51844
5329 10040
170673 132526
171518 18233
86475 190065
80831 76686
52206 186080
146858 95514
10827 119585
126186 190237
161355 90093
48356 178130
47519 60570
83546 138415
116318 163592
54456 98656
179470 116306
191241 24049
58564 12160
10300...

result:

ok 500000 lines

Test #5:

score: 0
Accepted
time: 368ms
memory: 79072kb

input:

4
300000 300000
275361 116025
61510 272401
86493 295560
126844 206890
180147 56921
253572 8795
164582 69337
212996 93644
260724 57509
128125 51578
11967 220901
278650 143108
11700 164491
38662 144478
81044 71636
214854 288774
44122 298906
271792 143176
132572 20587
145020 270141
189966 242186
68114 ...

output:

226820 114090
244013 241137
73852 82413
235541 203730
140067 102292
172324 112718
119967 53358
111564 207031
159951 148360
164708 104351
285243 236856
283498 58083
128034 247272
274035 240873
202242 24095
67965 268962
5830 170844
265681 248323
200812 258093
191663 66872
210040 158080
271555 224195
1...

result:

ok 333333 lines

Test #6:

score: 0
Accepted
time: 1ms
memory: 7944kb

input:

2
2 1
1 1
2 2
!
1 14
1 1
!
? 1
L 1
? 1
!
U 1
!
? 1
R 1
? 1
!
D 1
!
? 1

output:

0
0
1 1
1 1
0
0
1 1
1 1
0
0
1 1

result:

ok 11 lines