結果
| 問題 | No.1367 文字列門松 |
| コンテスト | |
| ユーザー |
SPD_9X2
|
| 提出日時 | 2021-01-29 21:28:52 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| + 939µs | |
| コード長 | 450 bytes |
| 記録 | |
| コンパイル時間 | 244 ms |
| コンパイル使用メモリ | 95,600 KB |
| 実行使用メモリ | 78,592 KB |
| 最終ジャッジ日時 | 2026-07-31 01:58:41 |
| 合計ジャッジ時間 | 3,406 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
"""
"""
from sys import stdin
import sys
def kd(L):
if L[0]==L[1] or L[1]==L[2] or L[2]==L[0]:
return False
elif max(L) == L[1] or min(L) == L[1]:
return True
else:
return False
S = input()
T = "kadomatsu"
ind = 0
for s in S:
while ind < len(T) and T[ind] != s:
ind += 1
if ind < len(T) and s == T[ind]:
ind += 1
else:
print ("No")
sys.exit()
print ("Yes")
SPD_9X2