QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#102026#4051. 学术社区Qiuly100 ✓781ms41984kbC++145.4kb2023-05-02 10:26:282023-05-02 10:26:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 4
Accepted
time: 7ms
memory: 15852kb

input:

5
7 10
A
B
C
D
E
F
G
A A A
B B B
C C C
D D D
E E E
F F F
G G G
A B loushang
C B loushang
G B loushang
3 10
A
B
C
A A A
B B B
C C C
A B loushang
C B loushang
B A louxia
B A louxia
B C louxia
B C louxia
A C loushang
3 10
A
B
C
A A A
B B B
C C C
A B loushang
A B loushang
B C louxia
B C louxia
A C louxi...

output:

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

result:

ok Correct.

Test #2:

score: 4
Accepted
time: 4ms
memory: 13788kb

input:

10
4 16
A
B
C
D
A abcdefghijkl ABCDEFGHIJKL
B abcdefghijkl ABCDEFGHIJKL
C abcdefghijkl ABCDEFGHIJKL
D abcdefghijkl ABCDEFGHIJKL
C D loushang
C B louxia
B C loushang
D A louxia
B D louxia
A A louxia
D A louxia
C D loushang
D C loushang
B A louxia
B B loushang
A A louxia
4 16
A
B
C
D
A abcdefghijkl AB...

output:

10
12 13 5 4 3 7 6 15 2 1 16 14 11 10 8 9
12
12 1 13 16 15 10 11 4 8 3 5 2 6 7 14 9
9
15 16 11 9 14 13 4 3 8 2 12 10 7 6 5 1
9
6 8 7 14 16 9 5 13 4 10 12 1 3 2 15 11
7
6 7 9 5 16 8 4 2 10 12 3 15 1 13 11 14
9
12 7 13 5 14 6 16 4 10 3 9 2 1 15 11 8
11
4 7 14 16 10 9 5 3 13 12 2 1 8 11 15 6
9
16 10 8 ...

result:

ok Correct.

Test #3:

score: 4
Accepted
time: 24ms
memory: 16344kb

input:

30
32 153
JpwBq..HDsu
ThevfUaiXaim
rPzLFrkzS!x?
bId_HMvquumA
qIfydwrvFtUF
MEWFHdwhdv
lhPN?!NqYwM
glDverWioFj
XQrJZ?atrx
hpmKvNwWSyhm
!KyWsTyVYf
wbhBWyPFh.N
PSsASTqBzE
mLCSCCLz.O
t.mbBELmCr
r.I!!?VCwnJQ
I?u!__ObGu
?_WyipVJj_c
cLDIkTYgonB
RUklAjWZ!.om
WRXWhpWD.g
JNqhVkbJ_g
HxpqMsUj!XOV
WvkzijbZb!D
!wy...

output:

121
148 30 151 69 146 33 119 153 56 149 111 130 9 138 139 50 120 67 140 42 117 141 137 96 92 87 121 98 145 15 78 131 114 143 20 23 12 142 94 74 113 103 147 133 135 109 150 97 44 125 1 118 104 49 72 129 89 128 144 132 102 88 71 100 60 83 81 127 95 64 134 126 101 19 45 123 152 115 122 110 116 21 65 61...

result:

ok Correct.

Test #4:

score: 4
Accepted
time: 12ms
memory: 13920kb

input:

30
32 165
cOrq.aXFlS
hhUwqwEhbR
STbfehzpg_
.pEbZEBQ!CJ
!ZrjAUDsFKIV
DxAYVmTQHlG
mdehhvitnCx
Znc.cGD.dy
.rgMqdJwB.H
oDxVlF?.wxW
bxF_qUlnMs
dvhzBd?WJL
hbDuYRbJQpHF
YJfupPIUzJtk
mUR!I?Exxr
csFCwfWNkd_s
dcAMbqtmnYDA
FyE.mDdgzC
uYpIamtkCVR
dPQgKFgYZP
tTl!ExnlcY
oVNrqKw?.A
gigkZHizGX
dSoVEtHSEhWw
QhoSFhcs...

output:

133
69 147 114 151 82 6 138 98 141 131 160 165 53 23 110 142 164 119 91 159 132 163 156 18 157 111 148 92 95 158 128 162 145 135 116 48 136 155 97 29 140 72 144 39 99 152 79 134 80 153 61 34 64 133 47 109 143 149 93 35 127 130 88 137 118 108 161 65 70 74 129 43 86 15 56 139 3 63 122 81 107 106 104 6...

result:

ok Correct.

Test #5:

score: 4
Accepted
time: 16ms
memory: 13980kb

input:

30
37 174
iGtEwpQ?kqZO
OZqk?QpwEtGq
OZqk?QpwEtG?
jGtEwpQ?kqZO
OZqk?QpwEtGu
OZqk?QpwEtGO
IGtEwpQ?kqZO
OZqk?QpwEtGw
SGtEwpQ?kqZO
BGtEwpQ?kqZO
OZqk?QpwEtGb
oGtEwpQ?kqZO
KGtEwpQ?kqZO
XGtEwpQ?kqZO
UGtEwpQ?kqZO
nGtEwpQ?kqZO
OZqk?QpwEtGp
lGtEwpQ?kqZO
OZqk?QpwEtGg
_GtEwpQ?kqZO
OZqk?QpwEtGY
OZqk?QpwEtGr
OZqk...

output:

110
68 162 83 60 166 76 173 65 121 102 170 44 128 74 97 51 169 111 18 12 124 50 174 141 20 130 145 110 2 98 96 136 59 61 149 56 158 165 160 7 159 142 131 155 167 143 171 88 63 172 70 152 45 157 135 164 115 148 47 86 154 127 132 116 168 40 122 118 90 53 133 120 119 112 78 58 117 93 92 72 28 49 48 38 ...

result:

ok Correct.

Test #6:

score: 4
Accepted
time: 12ms
memory: 16288kb

input:

30
28 163
BzleygJkKK
gdGiNNA?k.
qglX_GEvVWd
cIpmqbJIAC!U
q_MotjTfNX
YrTvPGRTKbnW
jrzBmcBQsw
t.jM.YxMYD
dqOpPkNmBT
fCGQHr!vYf
PZrGVRcDdUz
kklKFtFFNqP
GHcfKydBiHTj
weFZpvkQlQ
lJhGmiBGtLlh
K!?qmzmYiu
SUbVc.PiSU
GoqemRLiXXs
VVMdGHbtSN
AcJhbRhURKW
JNwhBUZxSRk
wLzONCLeyAE
myyaktsMhEH
SVwzBQQh.GCi
kNxhFcjW...

output:

126
28 16 162 46 156 76 124 50 103 81 110 38 138 161 109 30 152 128 141 160 5 65 113 13 144 117 136 49 27 118 36 137 61 159 140 74 148 134 135 104 154 95 126 146 78 131 116 163 111 114 145 88 142 130 93 75 77 90 151 112 108 44 158 51 89 55 106 143 18 52 107 139 105 149 98 101 100 69 121 17 102 21 11...

result:

ok Correct.

Test #7:

score: 4
Accepted
time: 16ms
memory: 14084kb

input:

30
32 168
fj_yTpB_YcEv
!j_yTpB_YcEv
vEcY_BpTy_js
vEcY_BpTy_jg
Kj_yTpB_YcEv
Uj_yTpB_YcEv
vEcY_BpTy_jP
mj_yTpB_YcEv
vEcY_BpTy_ju
Zj_yTpB_YcEv
vEcY_BpTy_jv
Tj_yTpB_YcEv
bj_yTpB_YcEv
pj_yTpB_YcEv
vEcY_BpTy_ji
vEcY_BpTy_jF
.j_yTpB_YcEv
Yj_yTpB_YcEv
Aj_yTpB_YcEv
zj_yTpB_YcEv
vEcY_BpTy_jt
vEcY_BpTy_jX
vEcY...

output:

136
164 111 162 98 157 127 140 97 18 112 152 96 43 122 166 146 124 125 81 107 160 109 39 159 147 133 66 165 95 106 105 158 16 161 115 60 76 86 144 90 44 84 8 141 89 40 52 25 10 92 100 136 143 47 12 85 28 57 11 94 61 163 32 142 69 71 82 99 13 70 153 59 131 15 132 91 121 110 156 118 67 73 79 135 62 11...

result:

ok Correct.

Test #8:

score: 4
Accepted
time: 12ms
memory: 16280kb

input:

30
32 168
OFBjSz_NqA
vFz!ZTNzIR
nljJhG!ro_
N!EqwUCFSIO
.lkTtUQuz_
rlkrtassDAu
EiqqUh?uNW
UrqRdKMSWCKi
aoeFwQvoftO
CXFPwk_AP.Sj
LXcKqfiasOQ
iEGWfwPkvDHt
AMIAlbc?giw
zDOWiTF!KQG
flUCnUqcPwh
EHsxJUvQgm
ueCDm_SlwA
TsnKKyLOqv
vZjVxrc!PDg
hQHuHuqfcqa
aDBXqENPORBX
uspFeYobvOe
WHdCXSApc.kQ
vqbyBV?!IL
NixXod...

output:

136
119 152 142 123 120 110 153 155 77 124 138 100 143 99 160 76 105 151 83 95 71 158 137 141 52 81 48 32 72 18 78 26 148 43 150 91 127 45 27 117 166 103 139 159 80 13 149 93 121 122 61 39 144 29 75 20 3 82 55 102 53 131 8 11 51 7 128 23 64 157 69 167 65 74 126 146 90 118 165 70 67 73 16 46 168 97 1...

result:

ok Correct.

Test #9:

score: 4
Accepted
time: 16ms
memory: 14252kb

input:

30
296 2195
K!YyGhp!Gl.Y
lFLYZGmNLy
pVAZuRySnD!g
RwwPPFcLMG
_QNQsvJNqhkZ
bslmJT.yuL
wOWjJfHqkD
yYAnD!pqJtP
pdjijhpxvX
Hk_IiwGCjV
eebSCJnHyd
LFMtXMAasMB
VYbnctPAg?
YDuIpaoDTEBY
de??KzSim_ub
VRVAGbwJYLl
.s?BbsCNWj
IHOaqvdxsx
DncVyohjab
aQQMMijXpBSi
rVxMTXneoFm
?HJXsmbXH?v.
c.KrBqwh?sI
kLoczbNPmMue
oat...

output:

1898
2023 1634 1880 2185 2161 2037 1177 1753 1804 2075 2055 540 1802 1955 2113 1428 1487 1847 2054 1579 2041 1703 1491 1267 2130 1941 1332 2173 1798 1743 1498 2043 2029 2183 1674 1511 928 1894 1073 1460 1402 1360 2094 1616 2031 2169 1350 308 1641 2188 1040 2088 405 912 1622 1196 1383 661 1593 1773 8...

result:

ok Correct.

Test #10:

score: 4
Accepted
time: 21ms
memory: 14568kb

input:

30
34 149
TfqnSAOpxRq
DtwPJm.ghzkO
hHdCRvQJG.At
l.WQg.v!yICt
nHPzIZPy!zoJ
.WKOXmnLvGmK
p_MM.vADQk
_EswrdFyyoaf
zrcIzTuVJtN
OfpWwS!byAky
pEEmid?xVi
ueim_rfLdR.?
cHZv!fwIlef
VVozgCXwdX?
WgMZxRVMhQB
YErodqcTkpKS
tc!vNbsHiQh
blDcRTRsek
XmwLFhGPCyx
nOs!R_M?YQ
vzSo!rChKHw
QwhkNQRkFsw
gjVWRcGOBs
XQFgcwJVnl...

output:

107
93 143 70 122 139 126 119 78 120 60 99 90 110 130 55 148 63 137 116 128 84 80 24 112 67 47 105 35 98 29 100 131 125 74 77 133 40 56 22 79 108 141 1 73 17 19 59 18 94 46 64 6 2 20 134 114 72 14 11 41 132 76 106 68 91 36 23 32 10 62 8 48 66 136 124 30 113 69 51 75 104 3 142 49 140 65 86 89 121 92 ...

result:

ok Correct.

Test #11:

score: 4
Accepted
time: 8ms
memory: 14528kb

input:

30
39 181
BEiCGrRPmHFM
?FHmPRrGCiEB
oFHmPRrGCiEB
YFHmPRrGCiEB
BEiCGrRPmHF_
BEiCGrRPmHFp
lFHmPRrGCiEB
BEiCGrRPmHFD
BEiCGrRPmHFB
BEiCGrRPmHFC
BEiCGrRPmHFP
dFHmPRrGCiEB
BEiCGrRPmHFO
hFHmPRrGCiEB
zFHmPRrGCiEB
FFHmPRrGCiEB
EFHmPRrGCiEB
AFHmPRrGCiEB
yFHmPRrGCiEB
BEiCGrRPmHFx
BEiCGrRPmHFf
BEiCGrRPmHFJ
BEiC...

output:

131
76 165 169 55 43 45 137 150 110 170 174 118 153 113 142 115 103 107 30 102 120 143 138 87 141 177 35 77 133 95 178 91 75 18 52 104 134 4 105 62 5 172 48 119 20 8 56 61 82 93 51 78 14 79 1 175 21 125 126 179 144 26 123 112 101 158 24 13 164 89 19 68 70 159 94 167 114 49 58 98 99 129 131 176 161 1...

result:

ok Correct.

Test #12:

score: 4
Accepted
time: 23ms
memory: 14520kb

input:

30
299 2221
CUscRFl!Y!
!NGeGkkgqKf
mxi?xcEjAvY
vRLSjVAwyTf
Jos!CsOJWaHA
juLYYH_hPzZu
yrj?Gt!MQCO
YiWC!TgjaH?O
?uAUKATuTbvu
RfbOyy!UAzWx
qRvLUZDtC!C
piCrwPLEMDku
qSQXXWYnxz
hGM?ik.gGSfe
Z!PEbb_wOuGN
sXtTcp.Uwy
lD_RWWL.ylme
lxsAAozRfq.
iWBBxQsHYKN!
COHBMlBwf_Y
pHOGeB_xhb
wIRf?npomha
fKdzbGojyeGq
mkbSh...

output:

1865
2136 1736 1158 633 2089 927 1706 168 1931 1611 1621 887 1173 875 65 1966 1333 1564 1885 1174 1703 1319 46 833 2125 601 1992 1254 1287 545 1982 558 19 1680 951 1119 1377 1031 1312 967 694 503 1900 2154 1841 502 1356 1322 950 1289 2109 673 1745 198 664 679 1029 1338 2081 88 2051 1462 578 922 1217...

result:

ok Correct.

Test #13:

score: 4
Accepted
time: 23ms
memory: 14592kb

input:

30
296 2191
.ls.paaIC.
vwPSDMubAA
PQjPGeOVesYQ
amhPAxTDcS
YHIYufo!Xk
PHp.ywUjrmaJ
PCZpBhINrsn
f?IOYZQ_RxM
uaitSaXHImn
SXPuuMuNbe
JfTEZmKXz?Q?
ypPKDcvi?L
HjoMtljhh_K?
mCSC?mrCppda
EYGtMXxhSXM
PNrrHyLFxGA
xFuxXBejBJDS
EIOYSBujnCu
.fqXVRnkkgdD
dXJtWg!DywME
?JvpnsbWCFk
ffYukXaAnJL
ytMQvDFSBkEn
zYZItVPDs...

output:

1842
1733 889 1227 1449 1190 46 1999 778 1684 2045 635 1768 329 483 150 1047 2041 2066 2001 1146 1410 1765 303 1260 1834 1157 867 965 1199 1054 1142 731 661 1694 599 1294 1852 1976 356 1204 1348 1824 1164 2183 1594 1000 911 1654 608 2190 1948 918 285 1668 199 1975 617 868 822 1501 2125 856 1741 1354...

result:

ok Correct.

Test #14:

score: 4
Accepted
time: 425ms
memory: 40772kb

input:

100
37 229
fMbXOgQT.YC?
fMbXOgQT.YCA
fMbXOgQT.YCq
fMbXOgQT.YC!
fMbXOgQT.YCL
fCY.TQgOXbMf
fMbXOgQT.YCi
VCY.TQgOXbMf
fMbXOgQT.YCE
fMbXOgQT.YCW
gCY.TQgOXbMf
eCY.TQgOXbMf
fMbXOgQT.YCj
fMbXOgQT.YCZ
UCY.TQgOXbMf
fMbXOgQT.YCz
fMbXOgQT.YCv
fMbXOgQT.YCk
wCY.TQgOXbMf
.CY.TQgOXbMf
YCY.TQgOXbMf
fMbXOgQT.YCc
fMb...

output:

192
129 157 192 69 9 28 169 61 207 113 208 30 120 171 18 199 62 203 152 102 26 221 181 74 49 166 198 227 147 76 197 142 119 202 216 121 170 108 220 85 83 179 146 180 134 161 135 224 139 205 77 187 111 214 219 25 217 178 189 190 162 183 176 8 229 223 174 210 194 118 226 158 145 160 125 215 149 188 14...

result:

ok Correct.

Test #15:

score: 4
Accepted
time: 415ms
memory: 41276kb

input:

100
40 257
gE?fFSdapGwW
WwGpadSFf?Er
QE?fFSdapGwW
KE?fFSdapGwW
WwGpadSFf?EA
WwGpadSFf?Ev
lE?fFSdapGwW
cE?fFSdapGwW
WwGpadSFf?Ei
GE?fFSdapGwW
HE?fFSdapGwW
WwGpadSFf?Eq
zE?fFSdapGwW
WwGpadSFf?EL
dE?fFSdapGwW
WwGpadSFf?En
WwGpadSFf?Ee
aE?fFSdapGwW
WwGpadSFf?Eu
SE?fFSdapGwW
WwGpadSFf?Ef
WwGpadSFf?EF
?E?...

output:

217
20 204 30 34 211 114 247 250 197 156 172 82 220 160 153 76 140 53 241 134 102 137 48 255 226 218 65 233 195 205 149 256 192 150 217 196 249 244 141 147 124 248 212 64 94 231 253 254 179 171 214 223 246 158 131 252 70 242 47 63 32 243 148 245 235 123 118 187 206 238 236 164 109 203 138 169 251 19...

result:

ok Correct.

Test #16:

score: 4
Accepted
time: 428ms
memory: 41856kb

input:

100
48 235
rQwzIJIECH.
sHIrfxcFOzh?
fjyfN.VfyUc_
cqSJbkhGnvN
zQ_YiZJQG!p
dpB_yEOtYMsP
tZ!DgibUTCom
X!VbNNtjqAG
TVDBRrRK!Kg
ngRjPukiMgB
puuuHN.BdW
syI.!_kjVod
swGUueBxJkfC
PWpOzFkSjvB
IuRjFJwLeef
HrGDcoptd_L
uDqKFgRRbic
kDVinBwAyTe
!m?tIqISxLG
KweFXtM_XNSv
nlRYoYgiI!
_lo!z_rHy.T
.pErbUIEMAE
.RMMgrxez...

output:

166
184 181 123 189 3 177 222 228 115 218 150 26 185 166 6 90 57 149 209 229 92 89 83 235 219 233 170 111 148 179 72 144 25 163 202 211 204 176 231 154 32 98 214 44 234 200 160 224 87 230 199 39 169 59 215 182 194 104 203 51 225 183 125 187 69 156 192 128 54 190 118 107 210 13 124 121 216 207 196 13...

result:

ok Correct.

Test #17:

score: 4
Accepted
time: 424ms
memory: 40072kb

input:

100
49 231
hTKBowtR?xxV
CTKBowtR?xxV
jTKBowtR?xxV
tTKBowtR?xxV
fTKBowtR?xxV
yTKBowtR?xxV
Vxx?RtwoBKTe
Vxx?RtwoBKTp
Vxx?RtwoBKTJ
Vxx?RtwoBKTu
Vxx?RtwoBKTS
XTKBowtR?xxV
Vxx?RtwoBKTs
NTKBowtR?xxV
Vxx?RtwoBKTr
ZTKBowtR?xxV
BTKBowtR?xxV
ITKBowtR?xxV
DTKBowtR?xxV
Vxx?RtwoBKTE
Vxx?RtwoBKTM
Vxx?RtwoBKTL
UTK...

output:

182
216 137 58 199 228 176 222 145 225 200 219 227 72 205 198 49 92 181 68 105 117 182 211 52 215 190 54 170 165 120 189 55 33 11 229 192 218 111 161 73 132 129 131 126 159 123 151 184 99 8 112 93 76 185 156 65 146 82 79 136 154 122 59 56 67 35 34 187 20 173 188 22 77 133 97 163 106 78 204 86 74 231...

result:

ok Correct.

Test #18:

score: 4
Accepted
time: 391ms
memory: 39400kb

input:

100
38 256
ZARmlFP!BuNE
ENuB!PFlmRAv
tARmlFP!BuNE
ENuB!PFlmRAC
YARmlFP!BuNE
ENuB!PFlmRAN
EARmlFP!BuNE
JARmlFP!BuNE
zARmlFP!BuNE
ENuB!PFlmRAj
ENuB!PFlmRAg
rARmlFP!BuNE
BARmlFP!BuNE
sARmlFP!BuNE
oARmlFP!BuNE
mARmlFP!BuNE
WARmlFP!BuNE
eARmlFP!BuNE
ENuB!PFlmRAQ
ENuB!PFlmRAP
bARmlFP!BuNE
.ARmlFP!BuNE
ENu...

output:

218
235 150 218 68 250 83 245 202 212 181 207 173 84 169 199 244 256 106 48 206 151 221 137 123 231 194 8 171 164 158 208 80 120 105 162 229 47 232 234 149 176 248 182 214 93 204 159 134 9 110 155 201 98 236 153 119 31 243 217 66 203 4 136 114 72 210 104 76 82 152 224 57 52 211 186 46 107 19 172 227...

result:

ok Correct.

Test #19:

score: 4
Accepted
time: 394ms
memory: 39140kb

input:

100
42 222
jmkootSXiZ
mWhoHNURiY
VUseF.Y_KAr
zedzeXFnSV!h
MugQz?bXs?n
nxgnJZzbKZ
xP.ZFX!NG_T
mwut_dUUIIpe
P?YgAA.tHx
.ksdRBEDMVGR
J_iwVZXqVEN
MvsELmrvjrT
FuAsbulWTe
LDAUkkWmlT
KsdSADmwm.CQ
qzbLzm?IOhl
jLxpYahEXS
gAybIDI_VYi
jXasQbfNRnIA
o.YWEoULQMZ
hTMhqSnvFOWG
t?QEczqaYklA
PiaiBu_NPJt
Ezvig.in?G
AR...

output:

180
149 86 198 208 7 186 104 163 141 195 203 214 125 102 22 152 46 184 138 190 202 183 193 108 181 212 69 187 188 162 157 222 182 170 199 211 213 156 153 44 130 168 24 154 105 56 147 178 85 122 159 217 74 113 118 161 73 21 166 59 47 121 135 5 12 144 55 151 216 174 110 176 23 148 179 109 6 33 96 205 ...

result:

ok Correct.

Test #20:

score: 4
Accepted
time: 774ms
memory: 41496kb

input:

100
32 236
gDBkQygRmXGf
DzgosmXBRL
DPpicDZAFlF
CULmbsr.etf
nFIxBkPYhE
DLQpMlVoPBr
HLfkkADNASFD
LTWrUNjcIn
Nrj.Ls?aeKOJ
DYw_hgITGW
wsbpKIIMN_o
BoxPjqJ.Ps
SkvDAnf..dvE
RMkisXjf_QSk
wKVFtHFaG_
XzGGA_S!NZ?H
FzpdxTWnb_G
gsYVmejwPcqi
mOoWwJuxhUKD
lyfoCxJNbt
CFPGpsdmsvf
HdrBp?bUWQkH
sJpwIYuYevZ
NbpVpB.foE
...

output:

182
235 182 165 155 170 206 186 203 103 172 145 200 236 181 35 61 208 194 41 230 222 102 166 214 54 68 95 197 217 49 198 38 131 171 159 134 224 223 188 24 178 151 116 179 60 90 153 156 167 187 11 176 125 86 225 130 146 79 128 5 104 152 136 115 108 77 232 192 202 51 110 175 211 7 207 180 139 43 100 1...

result:

ok Correct.

Test #21:

score: 4
Accepted
time: 781ms
memory: 41580kb

input:

100
41 251
AKyUZjS!HCog
goCH!SjZUyKI
CKyUZjS!HCog
tKyUZjS!HCog
goCH!SjZUyK_
PKyUZjS!HCog
TKyUZjS!HCog
goCH!SjZUyK!
rKyUZjS!HCog
goCH!SjZUyKX
hKyUZjS!HCog
LKyUZjS!HCog
sKyUZjS!HCog
MKyUZjS!HCog
iKyUZjS!HCog
goCH!SjZUyKS
kKyUZjS!HCog
goCH!SjZUyKQ
GKyUZjS!HCog
EKyUZjS!HCog
RKyUZjS!HCog
eKyUZjS!HCog
qKy...

output:

197
215 247 161 205 228 99 250 164 239 153 248 48 150 214 65 251 172 152 63 92 136 121 226 37 235 32 227 240 166 237 243 189 188 185 221 200 51 135 80 110 195 171 47 36 249 232 42 46 23 39 229 222 210 148 34 212 108 144 27 202 165 146 82 45 53 143 81 75 242 131 234 244 14 98 10 231 60 111 88 119 118...

result:

ok Correct.

Test #22:

score: 4
Accepted
time: 767ms
memory: 41984kb

input:

100
47 262
NUgKTQWLqlSu
J_UepZVpZI!
OFybuzA.ts
aJ!oeiupGpt
qEgiXBlraO
G.InLDNYalJ
IKqd?LBbOcS
fGfB.YSKA?
HkgFU.G_FGZ!
QVUDexUYhPt
yVKXraeLEjz
uBNttpsXtQew
_rh_WoubMp
dBmNlhaKQK
rcDEYYtaeF
..wusKVgmxn
jSyLVgt_CkL
GxAwCFvGADS
EszfFlNthk_
EcxJBVUIZw
WrbZ_qvBHIUq
bTgeRogA_oAF
Xr!ELlblATX
zOvG!alEcx
vtrG...

output:

197
134 72 254 120 187 130 250 179 243 209 185 159 164 180 240 258 194 220 98 244 125 215 186 115 16 233 2 260 11 148 138 28 184 262 59 153 128 70 146 226 156 216 118 177 129 108 20 144 141 203 53 49 251 252 135 237 162 90 166 62 173 213 131 48 46 223 110 88 161 107 132 217 39 155 87 31 188 259 261 ...

result:

ok Correct.

Test #23:

score: 4
Accepted
time: 643ms
memory: 41020kb

input:

100
44 263
GSwTGPndPrW
fQ_HniYihylp
zeLunnprU.
!Xx?xCWdZaS
yfQrY!laHT
xRHVh.bwwOxY
rZTEYbwQeiW
kdBlS_?iWW
bPVYVCLdjgkw
cheZRqcCFAN
tXFglACkIog
lnqlbAnTByp
wlTUrKRxXAGt
jORjpjqnt.
damueIrdQY
RANWBksGZZdd
CucYTniEj.M
ueLzXFh?TV
RqKArM?pZo
ozu!_Vtkrx
QqbuBOLfGc
sTRTdSKbkZLz
od_yHkJZXmt
efyCIFkzMdP
OMDG...

output:

209
29 252 209 31 203 253 130 144 148 111 212 125 223 187 114 116 8 38 151 256 28 255 104 131 128 244 259 77 176 124 97 95 185 236 50 141 107 249 159 5 257 254 210 26 206 262 48 134 199 4 237 39 230 198 54 119 89 247 155 172 146 192 157 127 18 162 184 181 129 217 170 200 222 204 34 132 143 194 123 5...

result:

ok Correct.

Test #24:

score: 4
Accepted
time: 672ms
memory: 41940kb

input:

100
45 248
zJwHpe_rlmeC
zJwHpe_rlmex
Memlr_epHwJz
temlr_epHwJz
oemlr_epHwJz
uemlr_epHwJz
zJwHpe_rlmeR
zJwHpe_rlmee
zJwHpe_rlmeQ
gemlr_epHwJz
demlr_epHwJz
zJwHpe_rlmea
zJwHpe_rlmeB
Yemlr_epHwJz
Eemlr_epHwJz
remlr_epHwJz
zJwHpe_rlmeA
zJwHpe_rlmew
zJwHpe_rlmei
zJwHpe_rlmeU
zJwHpe_rlmeS
Lemlr_epHwJz
Pem...

output:

200
243 168 26 97 202 232 207 62 147 94 186 87 122 39 194 171 58 79 230 1 99 189 242 30 9 8 229 182 154 61 118 200 238 74 172 106 86 60 15 53 113 175 36 114 73 3 166 142 184 149 152 52 44 139 190 213 214 244 235 28 43 123 239 234 210 179 111 151 126 174 136 117 57 158 29 110 71 248 112 127 34 187 18...

result:

ok Correct.

Test #25:

score: 4
Accepted
time: 668ms
memory: 40320kb

input:

100
49 294
XffSYEnSOVF
h.UQkRgrjER
PJOu?WVkaF
QwuvOKStQV
yEw_.VGRFoin
GxnGO.hEZh
fDTLxVKNobB
bYPNHVjs_SG
WgbSzRKxbhH
u.py_GkcRyk
WwDZdqsFLO
ZSJQMjyCVDc
JlaAWop.Lv_
PpZZ!Bqveo
kGGEbPCmDqUB
STUKjUFmfqV
lLJY!jzeCOl_
SBlmMsHDMh
FIkInhGMhe
Oymidks!bYY
rptc!EVznL!
fXXggRKsa!RT
CCeQkacXRA!
.IKFMJTtrLW
EpbE...

output:

230
272 212 280 192 93 230 28 194 288 258 235 218 278 284 38 210 149 292 97 289 63 112 54 286 252 7 203 214 202 215 250 162 245 51 78 205 217 249 177 129 56 208 259 193 219 257 68 120 185 113 18 199 265 131 139 169 100 170 247 91 180 157 150 189 130 65 145 154 152 118 171 159 11 62 255 225 70 253 13...

result:

ok Correct.

Extra Test:

score: 0
Extra Test Passed