結果

問題 No.313 π
ユーザー lloyzlloyz
提出日時 2023-04-24 00:10:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 364 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 76,304 KB
最終ジャッジ日時 2024-04-25 17:52:03
合計ジャッジ時間 4,020 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
75,696 KB
testcase_01 AC 57 ms
75,696 KB
testcase_02 AC 58 ms
76,040 KB
testcase_03 AC 59 ms
75,840 KB
testcase_04 AC 58 ms
75,760 KB
testcase_05 AC 62 ms
75,676 KB
testcase_06 AC 59 ms
76,304 KB
testcase_07 AC 59 ms
75,556 KB
testcase_08 AC 61 ms
75,760 KB
testcase_09 AC 61 ms
75,928 KB
testcase_10 AC 59 ms
76,052 KB
testcase_11 AC 59 ms
75,844 KB
testcase_12 AC 57 ms
75,976 KB
testcase_13 AC 58 ms
75,676 KB
testcase_14 AC 60 ms
75,764 KB
testcase_15 AC 60 ms
75,572 KB
testcase_16 AC 57 ms
75,880 KB
testcase_17 AC 58 ms
75,768 KB
testcase_18 AC 59 ms
75,560 KB
testcase_19 AC 58 ms
75,908 KB
testcase_20 AC 58 ms
75,644 KB
testcase_21 AC 60 ms
75,720 KB
testcase_22 AC 59 ms
75,568 KB
testcase_23 AC 59 ms
75,572 KB
testcase_24 AC 61 ms
75,912 KB
testcase_25 AC 60 ms
75,564 KB
testcase_26 AC 60 ms
75,908 KB
testcase_27 AC 60 ms
75,684 KB
testcase_28 AC 60 ms
75,632 KB
testcase_29 AC 61 ms
75,852 KB
testcase_30 AC 60 ms
75,748 KB
testcase_31 AC 58 ms
75,560 KB
testcase_32 AC 56 ms
75,716 KB
testcase_33 AC 58 ms
75,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

s = input()
counter = Counter(s)

C = {'0': 20104, '1': 20063, '2': 19892, '3': 20011, '4': 19874, '5': 20199, '6': 19898, '7': 20163, '8': 19956, '9': 19841, '.': 1}
ANS = ['', '']
for i in range(10):
    i = str(i)
    if counter[i] == C[i] + 1:
        ANS[0] = i
    elif counter[i] == C[i] - 1:
        ANS[1] = i
print(*ANS)
0