QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#47667#4656. Expected InversionsHuangHanShengAC ✓596ms15648kbC++173.1kb2022-09-10 15:49:212022-09-10 15:49:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 596ms
memory: 15648kb

input:

10
99962
98610 59430
98610 61395
98610 58034
98610 87271
98610 29286
58034 70509
70509 7160
70509 13451
58034 85314
98610 51281
61395 923
70509 61204
98610 97552
61395 51263
51281 57561
7160 4246
13451 44542
51263 33548
7160 97640
923 26659
7160 74860
4246 85146
4246 71390
4246 38450
29286 68584
986...

output:

501454622
501501499
501644430
501481557
501715066
501600083
501740698
501642255
501598937
501683562
501630074
501674259
501644914
501588133
501553597
501679890
501581908
501437703
501589882
501571490
501614492
501495733
501552156
501542880
501563824
501643293
501601401
501634326
501342599
501532790
...

result:

ok 999528 lines