QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#66942#5118. HotelZhangYiDeWA 2ms3540kbC++141.2kb2022-12-09 13:57:442022-12-09 13:57:48

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 3448kb

input:

3 1 3
MMM
MMM
FFF

output:

9

result:

ok 1 number(s): "9"

Test #2:

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

input:

3 3 1
ABC
DEF
GHI

output:

9

result:

ok 1 number(s): "9"

Test #3:

score: 0
Accepted
time: 1ms
memory: 3336kb

input:

10 438 438
WWW
SOU
PUN
ETC
OME
CFI
NAL
GOO
DHO
TEL

output:

12264

result:

ok 1 number(s): "12264"

Test #4:

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

input:

3 2 3
MMM
MMM
MMM

output:

15

result:

ok 1 number(s): "15"

Test #5:

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

input:

1 240 45
CAB

output:

135

result:

ok 1 number(s): "135"

Test #6:

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

input:

1 140 846
ACB

output:

420

result:

ok 1 number(s): "420"

Test #7:

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

input:

2 488 849
CAC
DCD

output:

2674

result:

ok 1 number(s): "2674"

Test #8:

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

input:

2 49 987
BAB
AAB

output:

294

result:

ok 1 number(s): "294"

Test #9:

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

input:

100 695 531
BCA
ADA
CBD
CFB
EAF
BAE
HCI
ECE
CII
BBB
AAC
ACC
AEC
BCC
DAC
DCF
HDC
DGF
IDB
ABB
ACB
ABB
BCD
ABC
CBD
GGD
EGC
CJF
JIC
ABB
BCC
CDA
DBD
FAF
DAC
CFG
HGF
CGH
AJD
ABA
CCC
ACC
CBC
FEE
GGG
DDF
BFD
EFB
GDK
ABB
CBB
ADB
DBD
CFE
ECC
AHC
IAA
CAH
DJE
ABB
BCC
AAD
EDB
BAE
ECE
CCH
HGC
CAJ
IJD
ABB
ACC
CAC
...

output:

132219

result:

ok 1 number(s): "132219"

Test #10:

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

input:

100 815 412
BAC
CAB
DEE
AFC
DCE
EHB
DGG
JEH
GFF
AAA
CAB
BBC
AEB
FAF
CEG
CAA
DII
JJB
ECA
ABB
BCC
BDA
BCC
EBB
CBA
HDD
CFG
DJH
DGJ
AAB
ABC
ABC
BBC
DEB
EFE
EEF
IBC
EIB
BBJ
AAA
CAC
BCD
AEE
CDA
GDA
AAB
EHC
JFI
DFC
AAB
ACB
CAB
ABB
EBA
FGF
CDE
GDG
AFF
KAJ
BBA
AAB
BDA
DDB
FFA
EEA
CGE
CCF
IFB
AGA
AAA
AAC
BBD
...

output:

103000

result:

ok 1 number(s): "103000"

Test #11:

score: 0
Accepted
time: 0ms
memory: 3484kb

input:

501 762 131
ACB
BDC
EDC
BBF
FCB
BEG
GDF
ECE
HKA
BBA
BAC
CDB
DDC
FEA
GCD
HDF
BBC
HDC
HFE
ABA
CBB
CDB
ABD
DEF
FAE
ACD
BEG
EBG
ABK
BBB
BBA
CBB
ACD
EAD
EGF
CCB
IIE
IBB
AKH
BBA
CCA
CCC
CBD
EFD
CFD
FHC
DFH
JIA
DBG
BAA
CBB
DDB
CCA
BED
DEF
CEF
GAF
FEJ
JBK
ABA
CBC
BDC
CCC
FBC
FFF
HHD
DBC
DBD
JGH
BAA
CAC
BDA
...

output:

174623

result:

ok 1 number(s): "174623"

Test #12:

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

input:

501 893 616
BCB
DDD
DBD
BCD
CBA
AHG
DEF
BII
ECI
ABA
ABB
AAD
AAE
FAC
BFB
GEG
DCI
DAH
IKD
AAB
CCC
ADD
CEB
CFF
BBF
AFE
EEH
FBJ
IAC
BBB
CAB
BBB
DCA
DEC
DEA
DCH
DCB
FFH
JBI
AAA
CBC
DDA
DAA
AAA
AGA
FCH
ECB
CFF
GBC
BAB
BCB
BCD
EBC
FDB
FEC
GGC
EDH
IJC
BEK
BAA
ABA
BCA
DDD
ABF
ECG
EDE
DEC
EBF
ICC
AAB
CCA
AAB
...

output:

803264

result:

ok 1 number(s): "803264"

Test #13:

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

input:

998 823 349
BBA
ADA
DAD
DEE
CCC
EFG
FGI
FAE
ADE
AAB
AAB
BBD
DBB
FEE
CFA
HDA
FDD
DIA
JBG
BAB
CCA
CBC
ACC
DEB
ECC
CDF
GGD
EEA
GFE
AAB
BCB
DDA
CEE
FEF
BEG
EBG
CEA
DBC
DBD
BAB
CAA
CBC
DAC
CCB
BBD
HGB
AII
EFA
AJA
BAA
CCB
BCB
DBC
CEE
DCB
DEH
HDE
AIJ
HHK
ABA
BCA
CBB
ABE
FAF
AFF
EAG
DCE
JED
CFI
BBB
CCB
ADA
...

output:

946488

result:

ok 1 number(s): "946488"

Test #14:

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

input:

998 645 646
CAC
CCA
BAE
EDA
CDF
DDD
BHI
CBJ
DDE
BAA
CBA
DDB
ADE
BEC
BDG
HDB
GCH
CJE
HIF
ABA
BAA
CBA
EBB
DEB
EEC
ECE
HEF
GHF
DGF
BBA
BBC
BAD
ABE
FBA
GCG
HHB
FFI
GIC
KHG
AAA
CCC
DDA
ACB
ACF
AGC
BEA
GEA
GHI
ECK
ABA
BAB
DAA
BCE
DEB
BBD
BDE
HBD
GCJ
KDJ
AAA
CCA
AAB
DBD
BAE
EBD
GBD
CDF
HGH
IAC
AAB
ABB
BCC
...

output:

1742438

result:

ok 1 number(s): "1742438"

Test #15:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

998 419 453
BAB
CDA
CBB
EFB
CFA
CGC
HFD
IAF
IGH
BBB
BBB
BCD
BCD
AAA
CCB
FAF
BAG
HAI
CIE
AAB
BCB
CCD
CDC
AEB
EFA
GHB
FGD
DAH
IIG
ABB
CCA
ABC
AED
CBE
EDG
HAE
DEC
ECA
IDI
ABA
BAC
ABC
BBC
AFD
GAA
EDG
EFG
BIJ
IBJ
AAA
BAA
BBC
DAD
FDD
BCC
HBA
GEB
EDF
GGJ
ABB
CBA
BDD
EEC
DAB
FFG
FFC
AAI
BJJ
IAA
ABA
CBC
DDD
...

output:

1137061

result:

ok 1 number(s): "1137061"

Test #16:

score: 0
Accepted
time: 0ms
memory: 3456kb

input:

998 580 808
BCB
ABB
BBA
ECE
AFG
FCA
GGE
BBE
AAB
ABA
ACB
CAD
EBB
FAE
CDC
CDE
IHG
EHJ
ECF
ABA
ACA
BAD
CED
BBF
GAG
FDF
AIH
BHD
JID
ABA
CAB
BCB
CAB
ACC
GBB
EGE
DFB
HII
HFK
BAA
BBB
BAD
DDB
BAA
GBE
HAC
FGG
ABG
CCB
ABB
ACC
AAD
CEE
BBE
ADB
ABG
ACH
CEC
CEJ
ABA
BBA
CDC
ACC
FDD
DAF
GAE
HGB
ABA
KHA
ABB
BCA
BDA
...

output:

1624936

result:

ok 1 number(s): "1624936"

Test #17:

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

input:

998 678 328
CCC
BAA
CED
DEC
AED
HGD
CDA
JIF
DFE
AAB
BCA
BBB
ECC
CDB
GEF
FAB
IBD
JEJ
HDK
ABA
CCB
CDC
DDC
BBF
EGC
EAF
DFA
FCF
FHC
BAA
ACA
BBD
ADC
BBF
GAB
FFH
HFE
ICH
DDC
BBA
ABB
BAA
DDC
EFF
DAE
HFG
ICF
GGE
IKE
BAA
BCC
CCC
CCD
CEE
EFE
BEG
ECD
AGI
IEK
ABA
CCA
BBD
DBA
BDE
BAE
HAC
EFF
AAH
CFH
BBA
ABB
AAB
...

output:

890192

result:

ok 1 number(s): "890192"

Test #18:

score: 0
Accepted
time: 1ms
memory: 3444kb

input:

999 597 346
CAC
BDB
DBC
DFF
DDB
BHH
EFB
AJC
FEC
ABB
BBA
ABC
DCC
BBD
CDD
GCF
EGE
EEJ
IFH
AAA
CAA
DAD
BAC
CEF
BDD
ECA
DDH
FJH
GFA
ABA
CCB
ABC
ADC
ECB
EGG
BCD
GBE
FEB
HBF
BAB
CCA
ABD
DEB
CBD
EGD
BDD
HIE
GCE
AKK
ABA
ACA
ADB
BDE
EEA
CDF
EBF
GBC
JHG
JCJ
ABA
ABC
DCD
CAB
DBF
FAD
DBD
HHI
IID
DCA
ABA
CAC
BAA
...

output:

930394

result:

ok 1 number(s): "930394"

Test #19:

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

input:

999 432 414
AAC
AAA
BCC
BCD
GCF
CHG
CHG
DGD
JAI
BAA
BBA
BCC
EDE
CCF
DDF
EHG
BGI
DGJ
EDE
BAB
CBC
ACB
EAA
BEB
GDG
EFA
IGE
HFJ
ADK
BAA
CBA
DAC
CBD
BDA
ACC
DEE
IGE
IDH
DHH
AAB
CCC
DDD
ECC
DEA
EBE
AGE
IED
JIH
JFE
ABB
CBB
DCA
BCE
BAC
ADD
BGB
EGA
GGE
AFI
AAA
AAB
DDB
BDB
AFF
CAA
GDF
DGG
IGF
CEH
AAA
CAC
DBA
...

output:

1121526

result:

ok 1 number(s): "1121526"

Test #20:

score: -100
Wrong Answer
time: 2ms
memory: 3460kb

input:

999 320 780
CCA
CBC
BEE
DFB
CCE
DDD
BBC
BCI
FIG
AAB
BAB
BDC
BAC
FCA
EEA
GCA
CDD
BJA
BDG
BAB
CCA
CDC
CCD
BEE
FFE
EFG
GHG
GCG
HIC
BAA
AAB
AAB
CEC
DEF
EBB
GGB
IHF
JHA
CHG
AAA
CCC
DCB
BAE
FAF
FFF
CFD
FCF
ADI
HJC
AAB
BAA
CDB
CDD
CBB
FFD
DCD
AGA
JHA
EEG
ABA
BCA
BBC
CED
BED
EGB
DGH
IED
IJE
ADI
BAB
BBA
CBA
...

output:

961140

result:

wrong answer 1st numbers differ - expected: '959040', found: '961140'