結果

問題 No.313 π
ユーザー mkawa2mkawa2
提出日時 2019-12-03 08:35:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 38 ms / 5,000 ms
コード長 698 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 10,872 KB
実行使用メモリ 8,680 KB
最終ジャッジ日時 2023-08-17 10:04:00
合計ジャッジ時間 3,853 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
8,520 KB
testcase_01 AC 35 ms
8,528 KB
testcase_02 AC 35 ms
8,584 KB
testcase_03 AC 35 ms
8,524 KB
testcase_04 AC 35 ms
8,436 KB
testcase_05 AC 37 ms
8,628 KB
testcase_06 AC 37 ms
8,632 KB
testcase_07 AC 38 ms
8,560 KB
testcase_08 AC 37 ms
8,680 KB
testcase_09 AC 36 ms
8,584 KB
testcase_10 AC 36 ms
8,444 KB
testcase_11 AC 35 ms
8,636 KB
testcase_12 AC 36 ms
8,680 KB
testcase_13 AC 35 ms
8,480 KB
testcase_14 AC 35 ms
8,592 KB
testcase_15 AC 35 ms
8,528 KB
testcase_16 AC 36 ms
8,480 KB
testcase_17 AC 35 ms
8,480 KB
testcase_18 AC 35 ms
8,532 KB
testcase_19 AC 35 ms
8,480 KB
testcase_20 AC 35 ms
8,508 KB
testcase_21 AC 35 ms
8,632 KB
testcase_22 AC 35 ms
8,456 KB
testcase_23 AC 35 ms
8,464 KB
testcase_24 AC 35 ms
8,508 KB
testcase_25 AC 35 ms
8,504 KB
testcase_26 AC 36 ms
8,624 KB
testcase_27 AC 35 ms
8,632 KB
testcase_28 AC 35 ms
8,528 KB
testcase_29 AC 35 ms
8,564 KB
testcase_30 AC 35 ms
8,472 KB
testcase_31 AC 35 ms
8,456 KB
testcase_32 AC 35 ms
8,588 KB
testcase_33 AC 35 ms
8,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    correct = [20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841]
    cnt = [0] * 10
    s = input()
    zero = ord("0")
    for c in s:
        if c == ".": continue
        i = ord(c) - zero
        cnt[i] += 1

    for i in range(10):
        if cnt[i] < correct[i]:
            ok = i
        if cnt[i] > correct[i]:
            ng = i
    print(ng,ok)

main()
0