結果
| 問題 | No.1367 文字列門松 | 
| コンテスト | |
| ユーザー |  ntuda | 
| 提出日時 | 2024-12-25 22:30:28 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 42 ms / 2,000 ms | 
| コード長 | 191 bytes | 
| コンパイル時間 | 1,292 ms | 
| コンパイル使用メモリ | 81,792 KB | 
| 実行使用メモリ | 51,968 KB | 
| 最終ジャッジ日時 | 2024-12-25 22:30:59 | 
| 合計ジャッジ時間 | 2,321 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 27 | 
ソースコード
T = "kadomatsuZ"
S = input()
N = len(S)
now = 0
for s in S:
    while now < 10 and T[now] != s:
        now += 1
    if now == 10:
        print("No")
        exit()
    now += 1
print("Yes")
            
            
            
        