結果

問題 No.1592 Tenkei 90
ユーザー ygd.ygd.
提出日時 2021-07-31 16:51:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 1,000 ms
コード長 367 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 71,788 KB
最終ジャッジ日時 2023-10-14 15:00:51
合計ジャッジ時間 4,012 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
71,704 KB
testcase_01 AC 98 ms
71,680 KB
testcase_02 AC 104 ms
71,676 KB
testcase_03 AC 105 ms
71,552 KB
testcase_04 AC 100 ms
71,616 KB
testcase_05 AC 101 ms
71,748 KB
testcase_06 AC 97 ms
71,612 KB
testcase_07 AC 99 ms
71,400 KB
testcase_08 AC 99 ms
71,788 KB
testcase_09 AC 99 ms
71,560 KB
testcase_10 AC 96 ms
71,724 KB
testcase_11 AC 97 ms
71,560 KB
testcase_12 AC 99 ms
71,652 KB
testcase_13 AC 101 ms
71,760 KB
testcase_14 AC 100 ms
71,744 KB
testcase_15 AC 100 ms
71,528 KB
testcase_16 AC 97 ms
71,604 KB
testcase_17 AC 100 ms
71,404 KB
testcase_18 AC 100 ms
71,556 KB
testcase_19 AC 100 ms
71,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict 

def main():
    dic0 = defaultdict(int)
    s = "kyoprotenkei90"
    for i in range(len(s)):
        dic0[s[i]] += 1
    dic1 = defaultdict(int)
    t = str(input())
    for i in range(len(t)):
        dic1[t[i]] += 1
    if dic0 == dic1:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()
0