QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#198471#5118. HotelGuanYunchangWA 1ms3516kbC++14507b2023-10-03 14:07:462023-10-03 14:07:47

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3392kb

input:

3 1 3
MMM
MMM
FFF

output:

9

result:

ok 1 number(s): "9"

Test #2:

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

input:

3 3 1
ABC
DEF
GHI

output:

9

result:

ok 1 number(s): "9"

Test #3:

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

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: 0ms
memory: 3392kb

input:

3 2 3
MMM
MMM
MMM

output:

15

result:

ok 1 number(s): "15"

Test #5:

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

input:

1 240 45
CAB

output:

135

result:

ok 1 number(s): "135"

Test #6:

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

input:

1 140 846
ACB

output:

420

result:

ok 1 number(s): "420"

Test #7:

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

input:

2 488 849
CAC
DCD

output:

2674

result:

ok 1 number(s): "2674"

Test #8:

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

input:

2 49 987
BAB
AAB

output:

294

result:

ok 1 number(s): "294"

Test #9:

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

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: 0ms
memory: 3412kb

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: 3456kb

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: 0ms
memory: 3444kb

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: 1ms
memory: 3416kb

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: -100
Wrong Answer
time: 1ms
memory: 3396kb

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:

1742444

result:

wrong answer 1st numbers differ - expected: '1742438', found: '1742444'