結果

問題 No.313 π
ユーザー しらっ亭しらっ亭
提出日時 2015-12-09 18:01:35
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 385 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 8,824 KB
最終ジャッジ日時 2023-10-13 08:43:35
合計ジャッジ時間 3,234 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
8,656 KB
testcase_01 AC 31 ms
8,824 KB
testcase_02 AC 31 ms
8,724 KB
testcase_03 AC 32 ms
8,688 KB
testcase_04 AC 33 ms
8,692 KB
testcase_05 AC 31 ms
8,688 KB
testcase_06 AC 33 ms
8,664 KB
testcase_07 AC 31 ms
8,676 KB
testcase_08 AC 32 ms
8,788 KB
testcase_09 AC 32 ms
8,696 KB
testcase_10 AC 32 ms
8,676 KB
testcase_11 AC 32 ms
8,748 KB
testcase_12 AC 31 ms
8,808 KB
testcase_13 AC 32 ms
8,660 KB
testcase_14 AC 32 ms
8,696 KB
testcase_15 AC 32 ms
8,688 KB
testcase_16 AC 33 ms
8,748 KB
testcase_17 AC 32 ms
8,732 KB
testcase_18 AC 34 ms
8,660 KB
testcase_19 AC 32 ms
8,740 KB
testcase_20 AC 33 ms
8,736 KB
testcase_21 AC 34 ms
8,684 KB
testcase_22 AC 32 ms
8,692 KB
testcase_23 AC 32 ms
8,692 KB
testcase_24 AC 32 ms
8,720 KB
testcase_25 AC 31 ms
8,736 KB
testcase_26 AC 32 ms
8,736 KB
testcase_27 AC 33 ms
8,696 KB
testcase_28 AC 32 ms
8,680 KB
testcase_29 AC 32 ms
8,680 KB
testcase_30 AC 32 ms
8,732 KB
testcase_31 AC 32 ms
8,728 KB
testcase_32 AC 33 ms
8,732 KB
testcase_33 AC 32 ms
8,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter


def solve():
    r = {'5': 20199, '7': 20163, '0': 20104, '1': 20063, '3': 20011, '8': 19956, '6': 19898, '2': 19892, '4': 19874, '9': 19841, '.': 1}

    S = input()
    c = Counter(S)

    for k in r:
        if r[k] > c[k]:
            to = k
        elif r[k] < c[k]:
            fr = k

    print(fr, to)


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