結果
問題 | No.1367 文字列門松 |
ユーザー |
👑 ![]() |
提出日時 | 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 stdinimport sysdef kd(L):if L[0]==L[1] or L[1]==L[2] or L[2]==L[0]:return Falseelif max(L) == L[1] or min(L) == L[1]:return Trueelse:return FalseS = input()T = "kadomatsu"ind = 0for s in S:while ind < len(T) and T[ind] != s:ind += 1if ind < len(T) and s == T[ind]:ind += 1else:print ("No")sys.exit()print ("Yes")