結果
| 問題 |
No.1367 文字列門松
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-06 18:14:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 181 bytes |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 51,840 KB |
| 最終ジャッジ日時 | 2024-07-03 05:49:00 |
| 合計ジャッジ時間 | 2,298 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
S = str(input())
KADOMATSU = "kadomatsu"
num = 0
for s in S:
i = KADOMATSU.find(s,num)
if i >= 0:
num = i+1
else:
print("No")
exit()
print("Yes")