結果
| 問題 |
No.1367 文字列門松
|
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2021-01-29 21:27:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 163 bytes |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 82,600 KB |
| 実行使用メモリ | 53,372 KB |
| 最終ジャッジ日時 | 2024-06-27 07:34:22 |
| 合計ジャッジ時間 | 1,922 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
s = input()
S = 'kadomatsu'
idx = 0
for c in s:
while idx < 9 and S[idx] != c:
idx += 1
idx += 1
if idx > 9:
print('No')
else:
print('Yes')
hir355