結果

問題 No.313 π
ユーザー ossa_2019ossa_2019
提出日時 2021-09-27 15:16:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 527 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 76,452 KB
最終ジャッジ日時 2023-09-20 15:50:58
合計ジャッジ時間 5,002 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
76,320 KB
testcase_01 AC 80 ms
76,256 KB
testcase_02 AC 80 ms
76,200 KB
testcase_03 AC 83 ms
76,188 KB
testcase_04 AC 80 ms
76,252 KB
testcase_05 AC 81 ms
76,196 KB
testcase_06 AC 81 ms
76,068 KB
testcase_07 AC 81 ms
76,200 KB
testcase_08 AC 81 ms
76,276 KB
testcase_09 AC 80 ms
76,384 KB
testcase_10 AC 79 ms
76,416 KB
testcase_11 AC 79 ms
76,068 KB
testcase_12 AC 81 ms
76,196 KB
testcase_13 AC 80 ms
76,452 KB
testcase_14 AC 80 ms
76,120 KB
testcase_15 AC 82 ms
76,120 KB
testcase_16 AC 81 ms
76,160 KB
testcase_17 AC 81 ms
76,164 KB
testcase_18 AC 81 ms
76,388 KB
testcase_19 AC 80 ms
76,240 KB
testcase_20 AC 81 ms
76,388 KB
testcase_21 AC 81 ms
76,320 KB
testcase_22 AC 81 ms
76,320 KB
testcase_23 AC 80 ms
76,196 KB
testcase_24 AC 81 ms
76,380 KB
testcase_25 AC 81 ms
75,968 KB
testcase_26 AC 80 ms
76,204 KB
testcase_27 AC 82 ms
76,364 KB
testcase_28 AC 80 ms
76,060 KB
testcase_29 AC 81 ms
76,116 KB
testcase_30 AC 80 ms
76,088 KB
testcase_31 AC 80 ms
76,068 KB
testcase_32 AC 82 ms
76,164 KB
testcase_33 AC 82 ms
76,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin, stdout


def main(inp, inps, put):
    ANSWER = [20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841]
    S = inp().rstrip().replace(".", "")
    counts = [0]*10
    for s in S:
        counts[int(s)] += 1
    
    enough, not_enough = 0, 0
    for i, c in enumerate(counts):
        if(ANSWER[i] > c):
            not_enough = i
        elif(ANSWER[i] < c):
            enough = i
    
    print(enough, not_enough)
                

main(stdin.readline, stdin.readlines, stdout.write)
0