QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#657027 | #6768. Nihongo wa Muzukashii Desu | CangShuV# | AC ✓ | 14ms | 10576kb | Python3 | 668b | 2024-10-19 14:04:22 | 2024-10-19 14:04:27 |
Judging History
answer
t = int(input())
for iii in range(t):
s = input().strip()
if s == "ikimasu":
print("itte")
continue
# ans = ""
s = "$$$$$" + s
if s.endswith("kimasu"):
print(s[5:-6] + "ite")
elif s.endswith("shimasu"):
print(s[5:-7] + "shite")
elif s.endswith("gimasu"):
print(s[5:-6] + "ide")
elif s.endswith("mimasu") or s.endswith("bimasu") or s.endswith("nimasu"):
print(s[5:-6] + "nde")
elif s.endswith("rimasu"):
print(s[5:-6] + "tte")
elif s.endswith("chimasu"):
print(s[5:-7] + "tte")
elif s.endswith("imasu"):
print(s[5:-5] + "tte")
詳細信息
Test #1:
score: 100
Accepted
time: 14ms
memory: 10524kb
input:
10 machimasu kaerimasu nomimasu yobimasu shinimasu kakimasu ikimasu kikimasu isogimasu kashimasu
output:
matte kaette nonde yonde shinde kaite itte kiite isoide kashite
result:
ok 10 lines
Test #2:
score: 0
Accepted
time: 11ms
memory: 10576kb
input:
63 machimasu kaerimasu nomimasu yobimasu shinimasu kakimasu ikimasu isogimasu kashimasu hatarakimasu yasumimasu owarimasu yomimasu kikimasu torimasu okurimasu kirimasu karimasu arimasu kakarimasu asobimasu oyogimasu kawakimasu sukimasu mochimasu hanashimasu hurimasu hairimasu suwarimasu tachimasu ke...
output:
matte kaette nonde yonde shinde kaite itte isoide kashite hataraite yasunde owatte yonde kiite totte okutte kitte katte atte kakatte asonde oyoide kawaite suite motte hanashite hutte haitte suwatte tatte keshite shitte sunde omoikishite oite utte tsukutte notte oshite oroshite dashite kaeshite meide...
result:
ok 63 lines