QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#503770#4067. Compass Card Salesxiaowuc1AC ✓547ms33632kbC++174.3kb2024-08-04 01:05:382024-08-04 01:05:39

詳細信息

Test #1:

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

input:

3
42 1 1 1
90 1 1 2
110 1 1 3

output:

2
3
1

result:

ok 3 lines

Test #2:

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

input:

4
0 0 0 0
120 120 120 120
240 240 240 240
0 120 240 2017

output:

2017
240
120
0

result:

ok 4 lines

Test #3:

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

input:

1
42 13 9 2017

output:

2017

result:

ok single line: '2017'

Test #4:

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

input:

2
42 13 9 2017
42 13 9 2016

output:

2017
2016

result:

ok 2 lines

Test #5:

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

input:

2
42 13 9 2017
13 13 13 2016

output:

2017
2016

result:

ok 2 lines

Test #6:

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

input:

7
9 151 196 730682420
99 10 79 333889683
80 78 212 2055599420
265 181 291 722831281
243 9 2 199170182
321 71 290 207696837
31 233 251 1819980293

output:

2055599420
722831281
207696837
1819980293
333889683
730682420
199170182

result:

ok 7 lines

Test #7:

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

input:

64
290 22 82 1164355328
262 137 79 1606265285
193 358 25 122761488
350 190 227 1254511831
136 349 82 1079862974
198 309 325 1831202024
298 4 309 338084208
222 259 25 2063256984
310 245 85 172038061
207 193 240 399056065
253 96 77 1277828161
16 230 47 1450007917
82 40 336 505096518
104 156 205 257454...

output:

1614616702
1754717768
569513554
2007266404
528743433
155785152
122761488
2016336830
1510840484
1188038722
1164355328
1450007917
1541060437
157326200
1790453656
1122667333
984160665
642910974
399056065
1313567999
900278650
644238823
2144164585
2120066860
1277828161
257454543
1276720160
1079862974
288...

result:

ok 64 lines

Test #8:

score: 0
Accepted
time: 7ms
memory: 3980kb

input:

862
33 18 350 1679151323
152 56 338 771187383
99 222 241 1169343084
1 242 282 1040841269
277 97 114 1959958969
229 238 149 1078881301
94 174 53 834042436
266 159 135 386151648
198 98 271 684784361
153 271 170 470342272
3 40 305 1923640220
27 154 108 1671898228
317 101 254 125823708
325 244 290 21292...

output:

2146636995
2142048580
2141619357
2140248952
2139735631
2135206764
2129297303
2123143919
2122489012
2121727180
2121266361
2113914162
2107401931
2106967498
2103461865
2100014719
2095563338
2092120283
2090456318
2087708179
2084574268
2084114948
2083370628
2081130322
2077758473
2076669179
2073025751
207...

result:

ok 862 lines

Test #9:

score: 0
Accepted
time: 39ms
memory: 6432kb

input:

9534
60 332 285 227317836
344 163 58 1986399840
193 269 82 1589711696
2 86 198 978247276
23 354 65 300300218
241 12 200 1430404960
278 111 102 1987639540
311 279 192 46523388
152 307 169 1623705257
37 77 311 666483735
193 147 189 1631689039
252 3 128 146138255
351 46 218 267995772
279 310 214 373206...

output:

2147333723
2147107001
2147090671
2146811353
2146755776
2146583643
2146170648
2145596440
2145496705
2145184522
2145177059
2145120625
2145116623
2144922132
2144777395
2144771102
2144737802
2144714616
2144403927
2144187664
2142732179
2142640339
2142511596
2142509109
2142504973
2142451651
2142184188
214...

result:

ok 9534 lines

Test #10:

score: 0
Accepted
time: 10ms
memory: 4556kb

input:

2787
228 203 341 2147480861
25 224 341 2147480862
113 297 72 2147480863
245 224 304 2147480864
245 252 276 2147480865
216 104 276 2147480866
245 153 72 2147480867
130 162 324 2147480868
216 224 74 2147480869
216 252 74 2147480870
245 104 304 2147480871
25 340 72 2147480872
245 182 72 2147480873
25 2...

output:

2147483647
2147483646
2147483644
2147483642
2147483640
2147483639
2147483638
2147483637
2147483635
2147483634
2147483633
2147483632
2147483631
2147483630
2147483629
2147483627
2147483626
2147483625
2147483624
2147483622
2147483621
2147483620
2147483619
2147483618
2147483616
2147483615
2147483613
214...

result:

ok 2787 lines

Test #11:

score: 0
Accepted
time: 292ms
memory: 21168kb

input:

59028
239 124 142 1381251250
127 146 113 1568874692
92 56 208 541584063
160 354 57 183515613
156 169 249 1071534940
320 291 306 1388223926
85 62 199 826177287
268 249 207 1708495849
197 288 112 1257943486
193 349 302 282090230
27 10 209 405401438
152 329 341 1308041776
267 292 256 681866708
274 123 ...

output:

2147467953
2147456035
2147404609
2147372740
2147322885
2147295641
2147182283
2147127941
2147091491
2147077394
2147068856
2146991282
2146921715
2146871821
2146772466
2146605653
2146560601
2146559190
2146551433
2146531749
2146512888
2146466797
2146437020
2146403024
2146351328
2146318107
2146294152
214...

result:

ok 59028 lines

Test #12:

score: 0
Accepted
time: 158ms
memory: 17932kb

input:

47849
212 238 263 2147435799
57 90 123 2147435800
254 238 263 2147435801
356 90 263 2147435802
249 145 123 2147435803
249 205 123 2147435804
254 271 73 2147435805
43 299 297 2147435806
57 220 263 2147435807
249 90 29 2147435808
254 238 73 2147435809
57 90 263 2147435810
249 238 297 2147435811
254 14...

output:

2147483647
2147483646
2147483645
2147483644
2147483643
2147483642
2147483641
2147483640
2147483639
2147483638
2147483637
2147483635
2147483634
2147483633
2147483632
2147483631
2147483630
2147483629
2147483628
2147483627
2147483626
2147483625
2147483624
2147483623
2147483622
2147483621
2147483620
214...

result:

ok 47849 lines

Test #13:

score: 0
Accepted
time: 547ms
memory: 33404kb

input:

100000
119 324 34 1143122373
105 237 118 1294037628
251 79 95 360779538
150 89 341 1430014444
108 292 189 1491135887
275 205 87 287824001
205 44 216 1917395878
145 251 118 1739969276
103 98 333 1288850514
119 287 252 364789642
58 170 17 1506345909
40 307 62 1580977948
358 77 289 1121082313
194 242 3...

output:

2147477502
2147471116
2147450138
2147446041
2147441775
2147409793
2147388988
2147336671
2147321788
2147319442
2147303733
2147297487
2147292133
2147288680
2147242670
2147234964
2147227671
2147207166
2147192460
2147189653
2147189493
2147187608
2147178717
2147151923
2147134614
2147112715
2147078761
214...

result:

ok 100000 lines

Test #14:

score: 0
Accepted
time: 337ms
memory: 33392kb

input:

100000
347 58 302 2147383648
276 61 290 2147383649
346 61 76 2147383650
346 91 219 2147383651
276 58 302 2147383652
276 3 76 2147383653
276 58 132 2147383654
324 128 132 2147383655
109 40 129 2147383656
45 3 96 2147383657
276 128 128 2147383658
346 3 286 2147383659
45 61 76 2147383660
347 58 219 214...

output:

2147483647
2147483646
2147483645
2147483644
2147483643
2147483642
2147483640
2147483639
2147483638
2147483636
2147483635
2147483634
2147483633
2147483632
2147483631
2147483630
2147483629
2147483628
2147483627
2147483626
2147483625
2147483624
2147483623
2147483622
2147483621
2147483620
2147483619
214...

result:

ok 100000 lines

Test #15:

score: 0
Accepted
time: 369ms
memory: 33632kb

input:

100000
0 0 0 796920868
0 0 0 877051242
0 0 0 1010309114
0 0 0 991055732
0 0 0 2032534261
0 0 0 1129545837
0 0 0 546199198
0 0 0 469692714
0 0 0 298963433
0 0 0 2077975316
0 0 0 1494350252
0 0 0 477127541
0 0 0 1657236901
0 0 0 1347582112
0 0 0 1625764869
0 0 0 1040302519
0 0 0 46891430
0 0 0 1906595...

output:

2147454215
2147451691
2147450000
2147439178
2147436772
2147415913
2147333727
2147328638
2147269678
2147213633
2147212216
2147187781
2147169429
2147126861
2147125804
2147122804
2147028883
2147021375
2147011597
2147008666
2146986944
2146930272
2146922174
2146915649
2146911634
2146895954
2146871117
214...

result:

ok 100000 lines

Test #16:

score: 0
Accepted
time: 330ms
memory: 33236kb

input:

100000
268 10 214 1504415337
268 10 214 553707750
268 10 214 1994761512
268 10 214 121621505
268 10 214 1122624688
268 10 214 743165085
268 10 214 102595508
268 10 214 1997566670
268 10 214 558990904
268 10 214 1854881444
268 10 214 207269216
268 10 214 1655905787
268 10 214 631613350
268 10 214 652...

output:

2147480089
2147450391
2147362026
2147298172
2147278026
2147244826
2147232527
2147228327
2147196029
2147186884
2147181094
2147152748
2147144638
2147111794
2147081041
2147022777
2147011406
2146989663
2146984592
2146975805
2146948257
2146911553
2146887975
2146882257
2146862990
2146837621
2146774459
214...

result:

ok 100000 lines