結果
| 問題 |
No.1367 文字列門松
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:06:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 187 bytes |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 82,212 KB |
| 実行使用メモリ | 53,796 KB |
| 最終ジャッジ日時 | 2025-03-20 21:06:15 |
| 合計ジャッジ時間 | 2,170 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
s = input().strip()
target = "kadomatsu"
i = j = 0
n, m = len(s), len(target)
while i < n and j < m:
if s[i] == target[j]:
i += 1
j += 1
print("Yes" if i == n else "No")
lam6er