結果

問題 No.1592 Tenkei 90
ユーザー qibqib
提出日時 2022-11-26 18:48:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 1,000 ms
コード長 221 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 82,228 KB
実行使用メモリ 55,364 KB
最終ジャッジ日時 2024-04-14 05:31:48
合計ジャッジ時間 2,211 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
54,384 KB
testcase_01 AC 47 ms
53,632 KB
testcase_02 AC 44 ms
53,568 KB
testcase_03 AC 43 ms
54,008 KB
testcase_04 AC 44 ms
55,116 KB
testcase_05 AC 45 ms
54,320 KB
testcase_06 AC 48 ms
54,432 KB
testcase_07 AC 49 ms
54,872 KB
testcase_08 AC 44 ms
54,072 KB
testcase_09 AC 44 ms
54,628 KB
testcase_10 AC 47 ms
54,348 KB
testcase_11 AC 43 ms
53,948 KB
testcase_12 AC 43 ms
54,128 KB
testcase_13 AC 46 ms
54,380 KB
testcase_14 AC 47 ms
54,028 KB
testcase_15 AC 49 ms
53,684 KB
testcase_16 AC 45 ms
54,116 KB
testcase_17 AC 42 ms
53,656 KB
testcase_18 AC 42 ms
55,364 KB
testcase_19 AC 42 ms
54,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict

cnt = defaultdict(int)
t = "kyoprotenkei90"
for c in t:
  cnt[c] += 1

s = input()
for c in s:
  cnt[c] -= 1

if all(v == 0 for k, v in cnt.items()):
  print("Yes")
else:
  print("No")
0