QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#233419#6603. Knights of the Frozen ThroneThreeKonjaks#RE 6ms9476kbC++143.0kb2023-10-31 17:27:172023-10-31 17:27:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
3 1 4 5
2 2 4
4 2 4 7 8
6 1 3 5 7 8 10
1
2 4 6 5

output:

53 2
3 4 

result:

ok 4 number(s): "53 2 3 4"

Test #2:

score: 0
Accepted
time: 2ms
memory: 8368kb

input:

3
3 1 1 4
5 1 4 4 5 7
3 3 4 5
2
6 4 3

output:

55 1
1 

result:

ok 3 number(s): "55 1 1"

Test #3:

score: 0
Accepted
time: 2ms
memory: 8448kb

input:

4
3 1 3 6
2 1 4
4 3 6 8 10
6 1 2 4 6 8 10
1
1 2 3 4

output:

50 2
1 4 

result:

ok 4 number(s): "50 2 1 4"

Test #4:

score: 0
Accepted
time: 6ms
memory: 9476kb

input:

300
48 18 49 82 86 95 107 116 168 189 213 235 302 352 358 412 413 430 431 433 470 479 498 503 510 559 571 586 635 648 649 653 666 694 712 716 727 733 793 819 823 825 828 881 882 899 909 922 976
77 25 38 59 78 80 81 96 113 118 137 147 158 163 166 183 204 228 248 248 250 255 275 296 297 326 332 335 33...

output:

4810960 1
203 

result:

ok 3 number(s): "4810960 1 203"

Test #5:

score: -100
Runtime Error

input:

1000
100784 8 70 91 99 101 134 153 157 187 191 195 212 227 228 234 238 248 265 272 276 291 294 296 309 361 378 389 389 423 439 454 463 479 484 486 495 497 498 498 512 519 524 532 542 543 545 576 578 588 590 597 604 620 626 639 640 647 647 652 660 690 692 695 705 717 720 722 732 732 738 752 769 770 7...

output:


result: