QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#874531#5828. 游戏ZhaoZiLong0 237ms3584kbC++14297b2025-01-28 10:30:372025-01-28 10:30:39

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3584kb

input:

500
279 196
182 105
400 14
278 217
198 411
379 318
120 421
314 95
437 325
23 433
71 485
192 154
90 224
180 71
328 93
183 101
404 349
223 285
492 100
366 480
29 328
200 448
365 156
226 231
129 167
246 273
171 452
284 6
131 471
229 90
480 48
448 157
240 221
7 36
401 200
255 438
436 110
281 489
388 258...

output:

61 1 129
38 1 91
57 1 120
45 1 91
21 1 72
5 1 43
30 1 62
28 1 74
19 1 55
24 1 60
29 1 59
53 1 116
16 1 53
57 1 126
63 1 128
29 1 66
27 1 68
25 1 86
19 1 52
17 1 42
19 1 71
31 1 75
52 1 107
39 1 94
35 1 69
7 1 55
48 1 102
23 1 66
40 1 92
38 1 82
18 1 63
55 1 112
72 1 144
39 1 81
31 1 75
17 1 74
16 1 ...

result:

wrong answer Wrong answer on test 1

Test #2:

score: 0
Wrong Answer
time: 2ms
memory: 3456kb

input:

2000
643 1871
689 23
1822 1443
1031 1027
1655 845
189 771
1561 498
19 1778
576 1080
904 717
1690 291
1387 1077
398 811
1310 1231
645 1291
480 927
330 170
1464 1057
1033 894
1308 288
1292 1529
1212 122
1108 401
89 1118
1058 1088
1764 1314
981 1255
1893 864
180 1887
1903 843
734 1412
883 1013
1739 124...

output:

2 1 103
152 1 309
81 1 174
3 1 166
89 1 296
68 1 158
202 1 407
46 1 159
49 1 152
86 1 195
57 1 252
31 1 178
78 1 185
88 1 228
104 1 230
75 1 200
89 1 224
47 1 229
128 1 329
103 1 283
102 1 205
65 1 178
147 1 354
74 1 164
116 1 234
5 1 87
104 1 213
80 1 291
52 1 138
66 1 208
118 1 240
138 1 292
39 1 ...

result:

wrong answer Wrong answer on test 1

Test #3:

score: 0
Wrong Answer
time: 77ms
memory: 3584kb

input:

200000
56968 132021
105656 107536
123627 58349
119191 138198
133708 142638
114350 24980
137784 40346
124158 130204
80684 183207
78156 94449
21893 157560
54464 73571
145830 57756
160288 32120
178632 142663
26565 185985
70576 24906
32217 115826
185756 137673
54280 179613
77826 144447
66005 29955
11745...

output:

1811 1 4306

result:

wrong answer Wrong answer on test 1

Test #4:

score: 0
Wrong Answer
time: 77ms
memory: 3456kb

input:

200000
41999 100683
85781 129266
122431 179332
162416 44814
24405 42267
154161 12483
178049 159964
67625 152391
133072 25866
178005 14695
94384 170290
54701 40323
66280 128515
159022 55057
14985 12920
182805 40659
173117 67973
99771 26102
198919 94543
23608 187601
61125 5759
89437 47647
18142 192402...

output:

1340 1 2780

result:

wrong answer Wrong answer on test 1

Test #5:

score: 0
Wrong Answer
time: 78ms
memory: 3584kb

input:

200000
195072 75458
31991 127114
60943 49502
186375 1130
45394 147217
168455 84307
132752 188952
101108 130004
107490 22003
16275 187645
111002 42669
138880 137115
112688 172751
81697 99037
166996 18495
2234 56119
170807 101349
105736 23180
148159 40863
136678 11849
190707 91245
61779 120740
157115 ...

output:

1727 1 3849
264 1 4639
1754 1 3762
2826 1 7051
1758 1 3902
2184 1 5873
1384 1 2970
1540 1 3162
624 1 2301
745 1 2280

result:

wrong answer Wrong answer on test 1

Test #6:

score: 0
Wrong Answer
time: 75ms
memory: 3584kb

input:

200000
48556 78408
155026 9376
8983 61211
150393 85068
90892 109283
75746 89742
6760 187245
168658 130735
68602 127646
60802 149828
22898 59471
172845 100274
42303 190696
7612 134905
94702 59800
129633 192496
19903 64869
51318 63358
34692 66030
98535 176606
153647 177529
157903 147292
106273 107278
...

output:

1052 1 2386
921 1 3421
1210 1 2497
1888 1 4271
1733 1 3630
1347 1 3421
76 1 2420
2111 1 4583
1163 1 3025
1933 1 4037

result:

wrong answer Wrong answer on test 1

Test #7:

score: 0
Wrong Answer
time: 233ms
memory: 3584kb

input:

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

output:

62949 1 145645
29804 1 68760
20705 1 115484
16671 1 36782
5656 1 41631
28131 1 114616
56172 1 114785
77629 1 171869
42327 1 174290
20964 1 175188
2900 1 142541
21712 1 82073
4028 1 20583
83956 1 177239
8150 1 99183
12843 1 94979
19612 1 136758
37599 1 93202
9655 1 26120
31750 1 70963
28190 1 95600
6...

result:

wrong answer Wrong answer on test 1

Test #8:

score: 0
Wrong Answer
time: 215ms
memory: 3584kb

input:

200000
5732 55198
128966 25317
114737 116391
150003 18274
43867 70745
76222 4169
55976 114951
198396 72896
38647 19711
12756 172119
73197 117994
117512 14177
130965 126990
119440 183341
142023 60829
111893 57350
122754 123305
36525 79077
36447 91967
135405 170456
165839 147481
66074 175822
22238 264...

output:

1 1 786
1 1 2904
1 1 3687
1 1 2629
1 1 2370
1 1 1643
1 1 564
1 1 1093
1 1 979
1 1 1394
1 1 1836
1 1 1907
1 1 2903
1 1 2296
1 1 1970
1 1 3905
1 1 1646
1 1 3190
1 1 1986
1 1 1796
1 1 3195
1 1 1999
1 1 2941
1 1 2359
1 1 2455
1 1 4252
1 1 2848
1 1 4528
1 1 2645
1 1 1432
1 1 2058
1 1 3010
1 1 2610
1 1 25...

result:

wrong answer Wrong answer on test 1

Test #9:

score: 0
Wrong Answer
time: 227ms
memory: 3584kb

input:

200000
185063 17064
180987 114492
88071 71803
158363 135918
60910 54848
97338 6734
192937 9410
49617 199068
82499 63554
188791 188152
178767 40866
11304 27212
144234 138097
42236 3946
103355 12683
50992 20598
145723 48620
11709 115688
123172 121379
70541 130844
147827 39431
139372 61280
42705 54015
...

output:

2038 1 4652
3287 1 6605
2452 1 5177
1628 1 4391
1419 1 3160
1968 1 4372
1188 1 3099
2045 1 4096
1311 1 3126
1595 1 3293
1292 1 3879
1093 1 3878
2113 1 4611
2978 1 6326
3358 1 6729
2767 1 6397
1213 1 2971
1324 1 3581
1341 1 3109
1332 1 3054
1179 1 2444
1639 1 3500
1047 1 3047
1910 1 4500
1833 1 4349
...

result:

wrong answer Wrong answer on test 1

Test #10:

score: 0
Wrong Answer
time: 237ms
memory: 3584kb

input:

200000
197244 185999
18639 124754
154223 12099
53676 167616
22710 22294
150412 66132
19320 75478
170410 122661
130961 175554
171586 85572
188386 81238
120249 117687
43214 126266
8744 165654
164725 189519
124144 170329
86605 100197
130545 17030
113301 96665
67733 187286
37846 146399
75352 117550
3235...

output:

1035 1 2695
1395 1 2798
1765 1 3704
1339 1 3839
1154 1 2648
1284 1 3165
572 1 1354
1348 1 3068
1009 1 2304
947 1 2047
1955 1 4870
1213 1 2574
1742 1 3584
509 1 1536
1114 1 2355
1087 1 2260
1037 1 3348
891 1 2105
1075 1 2430
1034 1 2458
745 1 3184
1788 1 3709
1115 1 2944
1066 1 2203
861 1 2005
679 1 ...

result:

wrong answer Wrong answer on test 1