結果
| 問題 | No.1367 文字列門松 |
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2021-01-29 21:27:07 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| + 585µs | |
| コード長 | 163 bytes |
| 記録 | |
| コンパイル時間 | 242 ms |
| コンパイル使用メモリ | 95,596 KB |
| 実行使用メモリ | 78,592 KB |
| 最終ジャッジ日時 | 2026-07-31 01:57:06 |
| 合計ジャッジ時間 | 3,420 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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