結果

問題 No.1592 Tenkei 90
ユーザー nehan_der_thalnehan_der_thal
提出日時 2021-07-09 21:45:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 1,000 ms
コード長 321 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 71,796 KB
最終ジャッジ日時 2023-09-14 08:23:23
合計ジャッジ時間 3,404 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
71,428 KB
testcase_01 AC 99 ms
71,352 KB
testcase_02 AC 100 ms
71,340 KB
testcase_03 AC 97 ms
71,516 KB
testcase_04 AC 99 ms
71,796 KB
testcase_05 AC 98 ms
71,416 KB
testcase_06 AC 98 ms
71,456 KB
testcase_07 AC 97 ms
71,572 KB
testcase_08 AC 99 ms
71,708 KB
testcase_09 AC 98 ms
71,420 KB
testcase_10 AC 99 ms
71,496 KB
testcase_11 AC 99 ms
71,504 KB
testcase_12 AC 99 ms
71,732 KB
testcase_13 AC 101 ms
71,452 KB
testcase_14 AC 101 ms
71,540 KB
testcase_15 AC 101 ms
71,612 KB
testcase_16 AC 101 ms
71,548 KB
testcase_17 AC 101 ms
71,524 KB
testcase_18 AC 99 ms
71,600 KB
testcase_19 AC 99 ms
71,296 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