結果

問題 No.1592 Tenkei 90
ユーザー IgrmiIgrmi
提出日時 2021-07-09 21:24:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 233 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 71,640 KB
最終ジャッジ日時 2023-09-14 07:33:39
合計ジャッジ時間 2,680 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,508 KB
testcase_01 AC 69 ms
71,592 KB
testcase_02 AC 70 ms
71,436 KB
testcase_03 AC 72 ms
71,432 KB
testcase_04 AC 70 ms
71,436 KB
testcase_05 AC 70 ms
71,468 KB
testcase_06 AC 70 ms
71,512 KB
testcase_07 AC 71 ms
71,464 KB
testcase_08 AC 70 ms
71,496 KB
testcase_09 AC 69 ms
71,180 KB
testcase_10 AC 72 ms
71,180 KB
testcase_11 AC 71 ms
71,452 KB
testcase_12 AC 72 ms
71,640 KB
testcase_13 AC 71 ms
71,356 KB
testcase_14 AC 72 ms
71,264 KB
testcase_15 AC 72 ms
71,328 KB
testcase_16 AC 72 ms
71,508 KB
testcase_17 AC 71 ms
71,432 KB
testcase_18 AC 70 ms
71,436 KB
testcase_19 AC 69 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = 'kyoprotenkei90'
S = input()
D = dict()
for t in T:
    if t in D: D[t] += 1
    else: D[t] = 1
for s in S:
    if s in D:
        D[s] -= 1
        if D[s] == 0: del D[s]
    else:
        print('No')
        exit()
print('Yes')
0