QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#618452#7012. Rikka with An Unnamed Templeucup-team4744TL 13345ms709008kbC++145.3kb2024-10-06 22:16:342024-10-06 22:16:39

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
4 5
1 2
2 3
3 4
4 2
1 2
1 3
2 4
3 4
1 4
5 3

output:

-1
8 1
-1
-1

result:

ok 4 lines

Test #2:

score: 0
Accepted
time: 3159ms
memory: 15260kb

input:

840
300 2000
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1...

output:

-1
26 4598303
26 5863883
26 5015595
26 5885768
26 5825352
26 5282239
26 5677503
26 5663242
26 5549866
26 5865190
26 5748616
26 5885768
26 5833529
26 5635401
26 5885768
26 4779744
26 2604267
26 5001275
26 5885768
26 5820512
26 4314551
26 5885768
26 4334970
26 5885768
26 5712718
26 3266408
26 5807851
...

result:

ok 252000 lines

Test #3:

score: 0
Accepted
time: 13345ms
memory: 709008kb

input:

10
100000 200000
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1...

output:

-1
92971 21
93151 80261
92971 66888304
93061 1636195
92971 1273
92971 4510
93151 287907743
92881 77902034
92881 77902034
93061 152329005
92791 11621
93061 1149299
92881 77902034
93061 1375637
92881 3146874
93241 331637001
92521 2323746
92971 74019096
93241 1634966
92971 49606952
93061 67095587
93241...

result:

ok 1000000 lines

Test #4:

score: -100
Time Limit Exceeded

input:

10
100000 199996
209716784 457585002
684116471 390878750
684117472 390878750
684116198 390878750
684120293 390878750
684118746 390878750
684123023 390878750
684115288 390878750
684119383 390878750
684119747 390878750
684123387 390878750
684119201 390878750
684118200 390878750
684122841 390878750
684...

output:

-1
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
1749122861 99997
17491228...

result: