結果
| 問題 | No.1367 文字列門松 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-18 23:49:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 175 bytes |
| 記録 | |
| コンパイル時間 | 189 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-05-17 06:44:28 |
| 合計ジャッジ時間 | 2,717 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
s=input()
l=list('kadomatsu')
for i in range(len(s)):
if s[i] in l:
ind=l.index(s[i])
l=l[ind+1:]
else:
print('No')
exit()
print('Yes')