結果

問題 No.313 π
ユーザー titiatitia
提出日時 2022-12-29 02:28:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 329 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 8,828 KB
最終ジャッジ日時 2023-08-15 20:16:37
合計ジャッジ時間 2,484 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
8,580 KB
testcase_01 AC 28 ms
8,712 KB
testcase_02 AC 28 ms
8,660 KB
testcase_03 AC 27 ms
8,688 KB
testcase_04 AC 27 ms
8,756 KB
testcase_05 AC 29 ms
8,632 KB
testcase_06 AC 30 ms
8,628 KB
testcase_07 AC 27 ms
8,664 KB
testcase_08 AC 28 ms
8,628 KB
testcase_09 AC 27 ms
8,756 KB
testcase_10 AC 28 ms
8,628 KB
testcase_11 AC 27 ms
8,576 KB
testcase_12 AC 28 ms
8,716 KB
testcase_13 AC 30 ms
8,632 KB
testcase_14 AC 28 ms
8,808 KB
testcase_15 AC 29 ms
8,828 KB
testcase_16 AC 28 ms
8,744 KB
testcase_17 AC 29 ms
8,812 KB
testcase_18 AC 29 ms
8,724 KB
testcase_19 AC 27 ms
8,812 KB
testcase_20 AC 27 ms
8,720 KB
testcase_21 AC 27 ms
8,660 KB
testcase_22 AC 27 ms
8,760 KB
testcase_23 AC 28 ms
8,644 KB
testcase_24 AC 29 ms
8,632 KB
testcase_25 AC 27 ms
8,632 KB
testcase_26 AC 28 ms
8,648 KB
testcase_27 AC 29 ms
8,824 KB
testcase_28 AC 30 ms
8,696 KB
testcase_29 AC 29 ms
8,652 KB
testcase_30 AC 29 ms
8,816 KB
testcase_31 AC 30 ms
8,632 KB
testcase_32 AC 28 ms
8,632 KB
testcase_33 AC 27 ms
8,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
S=input()
C=Counter(S)

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

ANS=["0","0"]

for i in range(10):
    k=str(i)
    if C[k]==CX[k]+1:
        ANS[0]=k
    elif C[k]==CX[k]-1:
        ANS[1]=k

print(*ANS)
0