結果
| 問題 | No.1367 文字列門松 |
| コンテスト | |
| ユーザー |
mesame3993
|
| 提出日時 | 2021-10-30 03:14:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| 記録 | |
| コンパイル時間 | 124 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-24 03:49:37 |
| 合計ジャッジ時間 | 1,686 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 WA * 8 |
ソースコード
s = input()
t = 'kadomatsu'
if len(s) > len(t):
print('No')
exit()
indx = -1
for i in range(len(s)):
if s[i] not in t:
print('No')
exit()
for j in range(indx+1, len(t)):
if s[i] == t[j]:
indx = i
break
else:
ans = print('No')
exit()
print('Yes')
mesame3993