QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#269739#7844. Enchanted Fortressucup-team1005#WA 14ms3832kbC++142.0kb2023-11-29 22:23:042023-11-29 22:23:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 8ms
memory: 3560kb

input:

ABC
1 -1 2
2 -3
1

output:

2
AC

result:

ok ok

Test #2:

score: 0
Accepted
time: 5ms
memory: 3564kb

input:

@
-1

output:

0


result:

ok ok

Test #3:

score: 0
Accepted
time: 8ms
memory: 3600kb

input:

ABDFHORSU!?
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:

9
ADFHORSU!

result:

ok ok

Test #4:

score: 0
Accepted
time: 5ms
memory: 3532kb

input:

A
0

output:

0


result:

ok ok

Test #5:

score: 0
Accepted
time: 5ms
memory: 3828kb

input:

*
1

output:

1
*

result:

ok ok

Test #6:

score: 0
Accepted
time: 5ms
memory: 3536kb

input:

!?@*
1 2 3 4
5 6 7
8 9
10

output:

4
!?@*

result:

ok ok

Test #7:

score: 0
Accepted
time: 12ms
memory: 3756kb

input:

!?@*
-1 -2 -3 -4
-5 -6 -7
-8 -9
-10

output:

0


result:

ok ok

Test #8:

score: 0
Accepted
time: 9ms
memory: 3628kb

input:

BA
-5 0
10

output:

1
A

result:

ok ok

Test #9:

score: 0
Accepted
time: 9ms
memory: 3560kb

input:

BA
-1 -8
6

output:

1
A

result:

ok ok

Test #10:

score: 0
Accepted
time: 8ms
memory: 3832kb

input:

CBA
7 6 -9
4 9
0

output:

2
CB

result:

ok ok

Test #11:

score: 0
Accepted
time: 11ms
memory: 3600kb

input:

BCA
4 -2 -5
-2 -7
-10

output:

1
B

result:

ok ok

Test #12:

score: 0
Accepted
time: 5ms
memory: 3532kb

input:

BCAD
9 5 -4 -7
4 5 5
7 -7
-2

output:

3
BCA

result:

ok ok

Test #13:

score: 0
Accepted
time: 8ms
memory: 3628kb

input:

CDBA
-6 -4 5 10
-8 2 6
9 9
-7

output:

3
CBA

result:

ok ok

Test #14:

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

input:

BDCEA
578 354 -120 90 852
494 -479 176 791
375 -393 -604
124 60
-300

output:

4
BDEA

result:

ok ok

Test #15:

score: 0
Accepted
time: 5ms
memory: 3592kb

input:

BCADE
-378599 627719 605863 385700 900008
-255132 -615654 34362 899491
339568 -940805 998872
745003 616051
-748394

output:

5
BCADE

result:

ok ok

Test #16:

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

input:

DBECA
840329 915177 802208 844961 364360
593863 148430 529188 809632
460076 567952 593488
933986 409773
320989

output:

5
DBECA

result:

ok ok

Test #17:

score: 0
Accepted
time: 12ms
memory: 3756kb

input:

EDCAB
-640316 -556181 -155810 -721221 -316868
-230635 -54757 98031 -344055
-17763 -633076 -59491
-481365 -706312
-337940

output:

0


result:

ok ok

Test #18:

score: 0
Accepted
time: 12ms
memory: 3620kb

input:

EDBCFA
-769 -471 -912 -910 81 25
-914 -583 860 362 378
-623 795 940 544
-949 -890 -187
622 -75
-110

output:

3
BFA

result:

ok ok

Test #19:

score: 0
Accepted
time: 13ms
memory: 3600kb

input:

FDEABC
-974809 793226 863847 649261 528337 -69648
-848846 -440250 964982 -451573 -178000
986930 -821923 23999 25910
-280034 224626 274668
-974827 333690
-865644

output:

1
E

result:

ok ok

Test #20:

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

input:

DAEFCB
543661 921857 939441 96024 235965 815135
464821 860585 230154 899058 797096
470959 80936 776686 540219
102015 322484 654667
347272 522595
26115

output:

6
DAEFCB

result:

ok ok

Test #21:

score: 0
Accepted
time: 13ms
memory: 3556kb

input:

DABFCE
-124356 -457769 -681405 85717 -871027 -874873
-75221 26316 60984 -584669 -163862
-481270 -285663 -574083 -350159
-597429 -336849 -205235
51133 -952802
-601747

output:

1
C

result:

ok ok

Test #22:

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

input:

EBGCADF
356 513 -665 244 68 637 685
-8 -234 401 147 336 687
255 247 -730 -997 953
-7 -560 460 25
-228 793 -104
860 281
-939

output:

6
EBCADF

result:

ok ok

Test #23:

score: 0
Accepted
time: 13ms
memory: 3756kb

input:

AGBFDEC
212115 -84025 -855099 -471702 -150046 371235 233862
224957 -771417 -617497 -29976 -908141 -681029
-487087 445737 -124742 -565399 -21406
-568066 276389 951681 -905028
-303468 362456 -666378
693926 728015
471101

output:

3
AEC

result:

ok ok

Test #24:

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

input:

GFCEDBA
681486 915666 210585 972310 540136 681765 364074
824268 386504 453634 422445 162900 503226
98804 769660 308101 122305 128418
975921 372884 426702 431683
43195 658080 548942
120438 537379
327987

output:

7
GFCEDBA

result:

ok ok

Test #25:

score: 0
Accepted
time: 14ms
memory: 3624kb

input:

DFEBACG
-55875 -550162 -530787 -233421 -760509 -824107 -945682
-929575 -301003 -959060 -480846 -616906 -214606
-876092 -583857 -973549 -407338 -281296
-902171 -897969 60518 -359630
-649372 -670732 -447577
-338968 -161233
-160291

output:

0


result:

ok ok

Test #26:

score: 0
Accepted
time: 11ms
memory: 3756kb

input:

DHFBGACE
504 -459 -880 -24 -572 -978 776 226
-106 201 -395 343 -392 -980 648
243 209 776 437 -784 -570
909 300 -945 -629 -354
644 -450 215 -63
966 -190 -843
678 945
945

output:

5
DBGCE

result:

ok ok

Test #27:

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

input:

HCGBEDFA
474950 249703 156543 239471 -421463 602542 379320 -188092
459374 -391552 -919808 592819 -134376 6936 -87273
-990525 -564716 315562 999024 -930786 -66249
-692777 -116792 -276718 87496 186201
-404603 -432927 888084 439965
-585906 -100013 -200392
-808421 -290896
598139

output:

5
HCEFA

result:

ok ok

Test #28:

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

input:

ABEFGHCD
370039 174886 211402 855994 434091 551928 670809 447463
963222 843183 468888 531255 349903 974703 665371
649686 380982 490480 842666 232129 757928
139625 44744 543708 995390 672966
688915 89541 913648 539714
456070 452116 377346
382419 408319
771223

output:

8
ABEFGHCD

result:

ok ok

Test #29:

score: 0
Accepted
time: 13ms
memory: 3832kb

input:

CGHAEDBF
-153680 -941934 -739222 38166 -574973 71698 -977709 95485
-704654 -943063 -38885 -339212 -171158 17166 -508481
43617 -308524 -911947 -812796 -620760 -831710
-286155 -871441 89770 -871105 88096
-509415 -926003 -227815 -799085
-288764 -205773 -984401
-305317 91635
-858642

output:

1
H

result:

ok ok

Test #30:

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

input:

GFDICEBHA
-595 -729 -159 -998 -167 245 -290 -285 609
-383 183 -663 336 825 -646 472 -2
773 -20 294 -540 38 -886 -599
748 -636 22 -773 558 -329
-354 -70 694 585 317
-679 -414 -321 -475
819 -222 -368
-340 -989
803

output:

4
DCBA

result:

ok ok

Test #31:

score: -100
Wrong Answer
time: 12ms
memory: 3540kb

input:

HBFIDCEAG
-455238 -945606 704817 -60004 -229576 -464468 -949779 690496 -513846
582105 426613 524327 -554120 821437 901646 803263 -330209
-787052 -449065 -350975 732528 -943397 -473895 -445460
-785333 746288 -79653 -753791 -49272 956200
672689 -11354 519619 -787270 39782
118830 -451675 457859 802230
...

output:

5
BCEAG

result:

wrong answer Contestant (6212650) is worse than jury (6650762)