結果

問題 No.1592 Tenkei 90
ユーザー ygd.
提出日時 2021-07-31 16:51:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 1,000 ms
コード長 367 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,828 KB
実行使用メモリ 53,888 KB
最終ジャッジ日時 2024-09-16 09:34:04
合計ジャッジ時間 1,810 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

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