結果

問題 No.313 π
ユーザー persimmon-persimmonpersimmon-persimmon
提出日時 2021-06-24 19:29:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 5,000 ms
コード長 285 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 77,260 KB
最終ジャッジ日時 2023-09-07 13:25:56
合計ジャッジ時間 5,819 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
76,864 KB
testcase_01 AC 114 ms
76,796 KB
testcase_02 AC 112 ms
76,684 KB
testcase_03 AC 114 ms
77,260 KB
testcase_04 AC 113 ms
76,932 KB
testcase_05 AC 115 ms
76,840 KB
testcase_06 AC 113 ms
77,068 KB
testcase_07 AC 114 ms
76,852 KB
testcase_08 AC 115 ms
76,856 KB
testcase_09 AC 116 ms
76,860 KB
testcase_10 AC 112 ms
76,888 KB
testcase_11 AC 114 ms
76,932 KB
testcase_12 AC 111 ms
77,116 KB
testcase_13 AC 113 ms
76,688 KB
testcase_14 AC 113 ms
76,992 KB
testcase_15 AC 112 ms
77,016 KB
testcase_16 AC 113 ms
76,812 KB
testcase_17 AC 112 ms
76,940 KB
testcase_18 AC 111 ms
76,860 KB
testcase_19 AC 113 ms
77,048 KB
testcase_20 AC 114 ms
77,060 KB
testcase_21 AC 115 ms
76,900 KB
testcase_22 AC 114 ms
76,684 KB
testcase_23 AC 114 ms
76,912 KB
testcase_24 AC 114 ms
76,932 KB
testcase_25 AC 113 ms
76,840 KB
testcase_26 AC 115 ms
76,704 KB
testcase_27 AC 114 ms
76,844 KB
testcase_28 AC 114 ms
76,792 KB
testcase_29 AC 113 ms
77,044 KB
testcase_30 AC 114 ms
76,696 KB
testcase_31 AC 115 ms
76,744 KB
testcase_32 AC 114 ms
76,692 KB
testcase_33 AC 115 ms
76,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
b={'5': 20199, '7': 20163, '0': 20104, '1': 20063, '3': 20011, '8': 19956, '6': 19898, '2': 19892, '4': 19874, '9': 19841, '.': 1}
a=input()
d=dict(Counter(a))
x,y=0,0
for k in b:
    if d[k]>b[k]:
        x=k
    elif d[k]<b[k]:
        y=k
print(x,y)
0