結果

問題 No.313 π
ユーザー minami
提出日時 2019-03-26 15:55:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2024-10-11 01:26:36
合計ジャッジ時間 3,438 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
cnt = {'1': 20069, '4': 19880, '5': 20203, '9': 19846, '2': 19902,
       '6': 19911, '3': 20017, '8': 19964, '7': 20166, '0': 20111, '.': 1}
for c in S:
    cnt[c] -= 1
cnt = sorted(cnt.items(), key=lambda x: x[1])
print(cnt[-1][0], cnt[0][1])
0