結果
| 問題 | No.1367 文字列門松 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-13 10:28:12 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 2,000 ms |
| コード長 | 325 bytes |
| 記録 | |
| コンパイル時間 | 543 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-13 04:58:14 |
| 合計ジャッジ時間 | 3,742 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
def main():
S = input()
KADOMATSU = "kadomatsu"
current_idx = 0
for letter in S:
current_idx = KADOMATSU.find(letter, current_idx)
if current_idx == -1:
print("No")
break
current_idx += 1
else:
print("Yes")
if __name__ == "__main__":
main()