QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#87478#525. 军训列队HuangHanSheng 100 ✓1851ms265972kbC++143.9kb2023-03-13 09:58:452023-03-13 09:58:47

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 2ms
memory: 5508kb

input:

10 10
8 10 15 9 4 2 1 17 20 7
3 6 8
2 2 10
5 6 4
9 9 20
9 9 20
2 3 40323
2 4 7
9 10 20
9 10 6
9 9 20

output:

16
0
3
0
0
80622
10
14
14
0

result:

ok 10 lines

Test #2:

score: 10
Accepted
time: 3ms
memory: 5916kb

input:

990 994
942 1075 1148 296 522 1048 746 1150 1670 1457 1920 1866 731 863 745 375 1861 894 1799 1061 1213 1720 300 866 1924 741 888 1212 1017 1905 1811 958 962 283 924 1621 1490 882 539 1419 407 76 1151 121 1927 570 1398 1308 690 918 1890 1036 1768 1009 1647 585 941 905 1767 1412 227 1156 1758 1404 14...

output:

78896
80331
206974
164466
178369
54027
64808
117569
91144
197781
206068
38099
29851
169609
93579
234615
25545
406
208884
187868
184753
52158
114753
20618
111983
270325
496
91189
6
261176
236580
116070
325843
39440
72390
946271
62038
24774
20277
52689
403603
714844
62289
55512
43502
47142
5078
156393...

result:

ok 994 lines

Test #3:

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

input:

995 998
1076 1934 147 1060 1902 476 1427 1715 1905 445 1478 1897 1187 1758 820 897 1807 130 262 1477 344 544 1984 1944 148 58 1780 291 31 1643 994 1061 1090 241 84 1001 526 1462 1548 1234 510 1896 545 1374 403 1824 338 1363 1203 172 314 1596 1224 1712 836 753 1074 170 1185 343 1960 1184 1848 1558 37...

output:

21358
259859
163096
479761
417856
52165
1231
110272
155229
190017
157083
33517
148393
89114
235694
327424
666
18693
878302
14845
18166
21236
59013
127542
293893
118113
182824
83723
9654
383978
156781
265547
214359
167410
59757
512859
327358
6248
204651
385043
172389
111666
87064
48986
112682
104043
...

result:

ok 998 lines

Test #4:

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

input:

990 996
499 1664 1799 1101 419 1675 796 1760 1445 815 171 208 434 331 888 1594 1409 742 869 1766 1113 1733 1979 1713 1449 505 378 1573 1875 1915 606 865 1600 1834 70 597 227 1425 936 463 1678 1323 1939 1410 544 134 61 1928 1412 1816 1371 1805 925 1859 885 1755 1458 238 242 913 106 1309 1894 1138 653...

output:

29840
152602
71518
546587
14101
131199
595847
45169
73403
53786
118539
270711
177204
70248
146752
306382
310076
32053
96156
9899
4509
413725149
103416
119324
21480
48878
41922
162805
40595
104213
299961
393928
93431
79982
44423
62534
64877
170830
14795
350685
13832
181371
17308
200129
222974
170387
...

result:

ok 996 lines

Test #5:

score: 10
Accepted
time: 214ms
memory: 58624kb

input:

99826 99830
100606 100932 174798 168362 16700 92287 159924 37261 175708 13226 8837 89033 39292 891 83583 142364 171421 172352 47529 172309 76061 130228 143356 84447 93143 85418 143029 38975 166674 150120 185819 68436 59558 20438 118472 182686 193004 40715 164672 50600 186974 36824 152663 164709 1469...

output:

53946373
10245815
33634977
2069009882
1499411791
1889730226
4786874388
700553021
850588494
1076753792
2728754059
154326288
3835687422
138397554
1618803550
2721630205
720215412
3430655569
386212790
4701371137
507517738
527262941
232281381
2823639307
386438930
537620714
47473128
109213776
92190919
109...

result:

ok 99830 lines

Test #6:

score: 10
Accepted
time: 206ms
memory: 59412kb

input:

99435 99725
146569 191 169895 140328 93889 111062 13970 72053 126931 77332 138743 73731 48902 148346 27046 97986 174869 136331 88655 129596 25004 134464 177901 73151 125671 131595 66300 551 129858 85063 124159 137965 86197 182837 39389 56669 24349 191751 191880 96562 167412 92630 180615 158179 15941...

output:

31402294
1041221298
624366309
29173841
252187776
119263893
1229379668
918351873
642808363
2683081303
1405539814
938869835
1110027359
393939038
1865982172
1069028642
113781358
1203863739
578760098
1542871862
2511883703
872166097
3610969451
213062492
871068119
2446548919
563770638
4787124702
223452608...

result:

ok 99725 lines

Test #7:

score: 10
Accepted
time: 187ms
memory: 58300kb

input:

99858 99274
148637 125069 104590 95691 183465 46755 183578 52533 154454 191389 130799 125499 65894 77740 162830 179949 57315 171003 152859 47632 195260 63462 58831 135062 145064 58468 135595 115753 184026 191877 46450 197537 199572 58475 187448 121310 173760 10870 78301 197895 165468 132962 94498 27...

output:

3418770011
21519390405
393351838
2525841609
706859820
811249295
2669897885
4462392279
1881671370
517316106
55967937
869725589
1101439250
2494706165
2213484684
183742507
3529774241
3141824227
1231838891
1990171515
52522687
595935465
3504620784
609739943
5451920624
2493942432
6827312368
1802076428
332...

result:

ok 99274 lines

Test #8:

score: 10
Accepted
time: 1843ms
memory: 265764kb

input:

499239 499423
138535 745697 108817 32292 403621 799264 388762 41352 211089 748167 527247 907349 786870 293553 872854 154137 379367 687856 346957 199126 165630 348372 696793 25417 68812 910881 837383 189718 632638 875044 586186 525660 390668 41599 175767 898263 551815 399667 968212 417927 879009 2860...

output:

37947147225
44464804845
8383879466
45421520326
181661281560
53492924899
37561553916
74107568537
17848858669
37622982299
963692215
65982126095
5183946198
68239153433
80327920687
119693366970
2374342720
1080757438
174181059894
10257894892
6253495378
48288610941
4513646343
671078197
12152700273
8993096...

result:

ok 499423 lines

Test #9:

score: 10
Accepted
time: 1846ms
memory: 265972kb

input:

499348 499628
687853 844854 328205 399943 869846 768784 798727 441203 427791 402793 4941 955225 615115 904548 808849 411667 713204 850263 842920 911180 678545 587161 225184 401431 352205 450490 747610 365413 636810 965242 773852 811146 566811 133448 190549 72397 441885 868452 645275 680774 224637 81...

output:

12882706146
3125199256
14744532410
72245913500
56879200510
70041488340
2163101973
27760286072
19181710309
4563205361
30898541844
41252529818
37327362287
78217456601
20938195516
12304001847
76881706722
25236842102
80691968115
37395153812
64644702517
22953327753
32171921815
27575797767
1741209010
2744...

result:

ok 499628 lines

Test #10:

score: 10
Accepted
time: 1851ms
memory: 264800kb

input:

499214 499462
524012 658554 462579 25379 790920 797730 935340 961156 563772 253533 579897 860285 434279 5100 385858 12402 878297 341784 145582 908402 943480 978640 207143 616664 469941 516697 52030 948361 594308 294897 324144 555390 139481 105809 455245 912643 695053 994941 617107 719713 780722 8619...

output:

75504618045
30036030291
20989708802
2041173124
11742137305
8585739313
98021378067
7086995368
60839387517
31451499970
3685570394
16462961939
11516381280
24139276953
17911098952
17746435279
116542266647
115102584315
83273503224
42432822268
27957142212
133884161295
55640112310
3489660844
49960452713
40...

result:

ok 499462 lines

Extra Test:

score: 0
Extra Test Passed