結果
| 問題 |
No.1367 文字列門松
|
| コンテスト | |
| ユーザー |
👑 SPD_9X2
|
| 提出日時 | 2021-01-29 21:28:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 450 bytes |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 52,608 KB |
| 最終ジャッジ日時 | 2024-06-27 07:36:31 |
| 合計ジャッジ時間 | 2,128 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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