結果

問題 No.1592 Tenkei 90
ユーザー nehan_der_thalnehan_der_thal
提出日時 2021-07-09 21:45:57
言語 PyPy3
(7.9.16)
結果
AC  
実行時間 97 ms / 1,000 ms
コード長 321 bytes
コンパイル時間 266 ms
実行使用メモリ 76,228 KB
最終ジャッジ日時 2023-02-01 22:51:46
合計ジャッジ時間 3,566 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
75,828 KB
testcase_01 AC 96 ms
76,216 KB
testcase_02 AC 97 ms
76,112 KB
testcase_03 AC 96 ms
76,220 KB
testcase_04 AC 94 ms
75,944 KB
testcase_05 AC 94 ms
76,028 KB
testcase_06 AC 95 ms
76,080 KB
testcase_07 AC 95 ms
76,116 KB
testcase_08 AC 95 ms
76,176 KB
testcase_09 AC 95 ms
76,208 KB
testcase_10 AC 94 ms
75,840 KB
testcase_11 AC 97 ms
76,200 KB
testcase_12 AC 96 ms
76,216 KB
testcase_13 AC 96 ms
76,172 KB
testcase_14 AC 95 ms
76,152 KB
testcase_15 AC 96 ms
76,228 KB
testcase_16 AC 95 ms
76,036 KB
testcase_17 AC 96 ms
76,204 KB
testcase_18 AC 97 ms
76,204 KB
testcase_19 AC 94 ms
76,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
D = defaultdict(int)
for c in "90kyoprotenkei":
    D[c] += 1
D2 = defaultdict(int)
for c in input().strip():
    D2[c] += 1

if len(D) != len(D2):
    print("No")
else:
    for c in D:
        if D[c] != D2[c]:
            print("No")
            break
    else:
        print("Yes")
0