結果

問題 No.1367 文字列門松
ユーザー ytft
提出日時 2022-03-23 00:22:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 663 ms
コンパイル使用メモリ 82,660 KB
実行使用メモリ 53,252 KB
最終ジャッジ日時 2024-10-10 19:09:06
合計ジャッジ時間 2,779 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
S=input()
ind=0
for i in 'kadomatsu':
	if ind<len(S) and S[ind]==i:
		ind+=1
print(['No','Yes'][ind==len(S)])
0