結果

問題 No.1367 文字列門松
ユーザー mesame3993mesame3993
提出日時 2021-12-04 02:03:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 71,572 KB
最終ジャッジ日時 2023-09-20 11:48:44
合計ジャッジ時間 4,058 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 76 ms
71,268 KB
testcase_03 AC 75 ms
71,060 KB
testcase_04 AC 74 ms
71,392 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 75 ms
71,036 KB
testcase_16 AC 75 ms
71,236 KB
testcase_17 AC 74 ms
71,196 KB
testcase_18 AC 72 ms
71,172 KB
testcase_19 AC 74 ms
71,100 KB
testcase_20 AC 76 ms
71,052 KB
testcase_21 AC 73 ms
71,452 KB
testcase_22 AC 74 ms
71,172 KB
testcase_23 AC 76 ms
71,032 KB
testcase_24 AC 75 ms
71,284 KB
testcase_25 AC 74 ms
71,404 KB
testcase_26 AC 73 ms
71,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  from sys import stdin
  readline = stdin.readline
  s = readline()[:-1]
  t = 'kadomatsu'
  st = set({t})
  for i in range(len(t)):
    tmp = t[:i] + t[i+1:]
    st.add(tmp)
  print('Yes' if s in st else 'No')
main()
0