結果

問題 No.1367 文字列門松
ユーザー mesame3993mesame3993
提出日時 2021-12-09 01:35:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 483 bytes
コンパイル時間 1,168 ms
コンパイル使用メモリ 86,760 KB
実行使用メモリ 71,552 KB
最終ジャッジ日時 2023-09-23 12:46:45
合計ジャッジ時間 4,835 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,108 KB
testcase_01 AC 74 ms
71,268 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 75 ms
71,104 KB
testcase_05 AC 74 ms
71,160 KB
testcase_06 AC 74 ms
71,372 KB
testcase_07 AC 75 ms
71,460 KB
testcase_08 AC 74 ms
71,308 KB
testcase_09 AC 74 ms
71,040 KB
testcase_10 AC 75 ms
71,292 KB
testcase_11 AC 74 ms
71,088 KB
testcase_12 AC 75 ms
71,312 KB
testcase_13 AC 75 ms
71,380 KB
testcase_14 AC 74 ms
71,304 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 73 ms
71,324 KB
testcase_25 AC 72 ms
71,136 KB
testcase_26 AC 72 ms
71,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  from sys import stdin
  readline = stdin.readline
  s = readline()[:-1]
  n = len(s)
  t = 'kadomatsu'
  if s == t:
    print('Yes')
    exit()
  elif n >= len(t):
    print('No')
    exit()
  st_t = set(x for x in t)
  st_s = set(x for x in s)
  delta = st_s - st_t
  print('Yes' if len(delta) == 0 else 'No')


  
if __name__ == "__main__":
  import sys
  readline = sys.stdin.readline
  def error(*args, end='\n'):
    print(*args, end=end, file=sys.stderr)
  main()
0