QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#345207 | #7656. Eszett | hht2005 | AC ✓ | 0ms | 3832kb | C++14 | 450b | 2024-03-06 16:09:23 | 2024-03-06 16:09:23 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
char s[22];
int main() {
scanf("%s", s + 1);
int n = strlen(s + 1);
for(int i = 1; i < n; i++) {
if(s[i] == s[i + 1] && s[i] == 'S') {
for(int j = 1; j < i; j++)
putchar(s[j] - 'A' + 'a');
putchar('B');
for(int j = i + 2; j <= n; j++)
putchar(s[j] - 'A' + 'a');
puts("");
}
}
for(int i = 1; i <= n; i++)
putchar(s[i] - 'A' + 'a');
puts("");
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3552kb
input:
AUFREISSEN
output:
aufreiBen aufreissen
result:
ok correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
MASSSTAB
output:
maBstab masBtab massstab
result:
ok correct
Test #3:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
EINDEUTIG
output:
eindeutig
result:
ok correct
Test #4:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
S
output:
s
result:
ok correct
Test #5:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
STRASSE
output:
straBe strasse
result:
ok correct
Test #6:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
M
output:
m
result:
ok correct
Test #7:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
MZ
output:
mz
result:
ok correct
Test #8:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
SE
output:
se
result:
ok correct
Test #9:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
BS
output:
bs
result:
ok correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
SS
output:
B ss
result:
ok correct
Test #11:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
MZN
output:
mzn
result:
ok correct
Test #12:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
SET
output:
set
result:
ok correct
Test #13:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
BSC
output:
bsc
result:
ok correct
Test #14:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
SSH
output:
Bh ssh
result:
ok correct
Test #15:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
HJS
output:
hjs
result:
ok correct
Test #16:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
SUS
output:
sus
result:
ok correct
Test #17:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
TSS
output:
tB tss
result:
ok correct
Test #18:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
SSS
output:
Bs sB sss
result:
ok correct
Test #19:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
QSSS
output:
qBs qsB qsss
result:
ok correct
Test #20:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
CWSF
output:
cwsf
result:
ok correct
Test #21:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
SKMS
output:
skms
result:
ok correct
Test #22:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
SSOSY
output:
Bosy ssosy
result:
ok correct
Test #23:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
SJTJS
output:
sjtjs
result:
ok correct
Test #24:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
KFQSS
output:
kfqB kfqss
result:
ok correct
Test #25:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
SSTBAS
output:
Btbas sstbas
result:
ok correct
Test #26:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
SEJWHS
output:
sejwhs
result:
ok correct
Test #27:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
VSSIVK
output:
vBivk vssivk
result:
ok correct
Test #28:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
SISDRKS
output:
sisdrks
result:
ok correct
Test #29:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
SSIIYRU
output:
Biiyru ssiiyru
result:
ok correct
Test #30:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
SVXSCSI
output:
svxscsi
result:
ok correct
Test #31:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
CSSUFKSA
output:
cBufksa cssufksa
result:
ok correct
Test #32:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
XYCXSUJW
output:
xycxsujw
result:
ok correct
Test #33:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
SSCCVGSE
output:
Bccvgse ssccvgse
result:
ok correct
Test #34:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
USODCFCQW
output:
usodcfcqw
result:
ok correct
Test #35:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
QSSYLGSUT
output:
qBylgsut qssylgsut
result:
ok correct
Test #36:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
SFSWSZFVG
output:
sfswszfvg
result:
ok correct
Test #37:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
ZDIISSFQBK
output:
zdiiBfqbk zdiissfqbk
result:
ok correct
Test #38:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
NASPGSYSLL
output:
naspgsysll
result:
ok correct
Test #39:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
TYSNSELISR
output:
tysnselisr
result:
ok correct
Test #40:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
SASIIFGXSPC
output:
sasiifgxspc
result:
ok correct
Test #41:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
BCSADCQJASS
output:
bcsadcqjaB bcsadcqjass
result:
ok correct
Test #42:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
SQSPSUXEOBV
output:
sqspsuxeobv
result:
ok correct
Test #43:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
GSKRZGXGJSES
output:
gskrzgxgjses
result:
ok correct
Test #44:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
DSSCJYYFKSZQ
output:
dBcjyyfkszq dsscjyyfkszq
result:
ok correct
Test #45:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
KLSZNDQRYSSK
output:
klszndqryBk klszndqryssk
result:
ok correct
Test #46:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
QNYSSOIOHKSPP
output:
qnyBoiohkspp qnyssoiohkspp
result:
ok correct
Test #47:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
KHFSGMSNZBSNA
output:
khfsgmsnzbsna
result:
ok correct
Test #48:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
YBSDSSCXQNYNW
output:
ybsdBcxqnynw ybsdsscxqnynw
result:
ok correct
Test #49:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
POGSVOPOZWSSBX
output:
pogsvopozwBbx pogsvopozwssbx
result:
ok correct
Test #50:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
BRGSUSVQWBYHSX
output:
brgsusvqwbyhsx
result:
ok correct
Test #51:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
XFTTSZJMJFMYST
output:
xfttszjmjfmyst
result:
ok correct
Test #52:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
PIRMPOSGPIMFBEK
output:
pirmposgpimfbek
result:
ok correct
Test #53:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
BHPGVKJMPQDSISS
output:
bhpgvkjmpqdsiB bhpgvkjmpqdsiss
result:
ok correct
Test #54:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
EGLSNBNSLLVWVPS
output:
eglsnbnsllvwvps
result:
ok correct
Test #55:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
ACTSFNGHJSNWSJJP
output:
actsfnghjsnwsjjp
result:
ok correct
Test #56:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
QUSSADXNLLJHXFXS
output:
quBadxnlljhxfxs qussadxnlljhxfxs
result:
ok correct
Test #57:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
RNEHZSVOPKIDSPJF
output:
rnehzsvopkidspjf
result:
ok correct
Test #58:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
RKXBCPXJSATTJMSSO
output:
rkxbcpxjsattjmBo rkxbcpxjsattjmsso
result:
ok correct
Test #59:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
XKSZJJHSVSHUAHTCE
output:
xkszjjhsvshuahtce
result:
ok correct
Test #60:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
SNGJTDICCSWLRDVBN
output:
sngjtdiccswlrdvbn
result:
ok correct
Test #61:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
BLSDETWYSWXSGKNPMO
output:
blsdetwyswxsgknpmo
result:
ok correct
Test #62:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
STJSQRSZPNHVLKILRO
output:
stjsqrszpnhvlkilro
result:
ok correct
Test #63:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
XSGLLGSMLDISWNXPWA
output:
xsgllgsmldiswnxpwa
result:
ok correct
Test #64:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
UASUWWGCTGGSKSNWLJX
output:
uasuwwgctggsksnwljx
result:
ok correct
Test #65:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
LXAWDLZSCRNEXSGGSKB
output:
lxawdlzscrnexsggskb
result:
ok correct
Test #66:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
XUKSIYXNSSOECOXMRXU
output:
xuksiyxnBoecoxmrxu xuksiyxnssoecoxmrxu
result:
ok correct
Test #67:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
VTRRKTFSWGBKHSRBSPVV
output:
vtrrktfswgbkhsrbspvv
result:
ok correct
Test #68:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
VHYYZSLSFAJXXRJSJRDF
output:
vhyyzslsfajxxrjsjrdf
result:
ok correct
Test #69:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
SSXLSMXANFXWGOTQVFVQ
output:
Bxlsmxanfxwgotqvfvq ssxlsmxanfxwgotqvfvq
result:
ok correct