結果

問題 No.313 π
ユーザー roiti46roiti46
提出日時 2015-12-06 00:24:11
言語 Python2
(2.7.18)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 375 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 6,504 KB
実行使用メモリ 8,288 KB
最終ジャッジ日時 2023-10-12 16:16:54
合計ジャッジ時間 5,783 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
8,092 KB
testcase_01 AC 127 ms
8,288 KB
testcase_02 AC 127 ms
8,252 KB
testcase_03 AC 127 ms
8,268 KB
testcase_04 AC 127 ms
8,064 KB
testcase_05 AC 127 ms
8,184 KB
testcase_06 AC 127 ms
8,240 KB
testcase_07 AC 127 ms
8,192 KB
testcase_08 AC 127 ms
8,048 KB
testcase_09 AC 127 ms
8,048 KB
testcase_10 AC 127 ms
8,088 KB
testcase_11 AC 127 ms
8,048 KB
testcase_12 AC 127 ms
8,224 KB
testcase_13 AC 127 ms
8,184 KB
testcase_14 AC 127 ms
8,188 KB
testcase_15 AC 128 ms
8,100 KB
testcase_16 AC 129 ms
8,280 KB
testcase_17 AC 128 ms
8,236 KB
testcase_18 AC 127 ms
8,100 KB
testcase_19 AC 127 ms
8,092 KB
testcase_20 AC 127 ms
8,048 KB
testcase_21 AC 128 ms
8,192 KB
testcase_22 AC 127 ms
8,120 KB
testcase_23 AC 127 ms
8,228 KB
testcase_24 AC 127 ms
8,136 KB
testcase_25 AC 127 ms
8,048 KB
testcase_26 AC 127 ms
8,244 KB
testcase_27 AC 128 ms
8,052 KB
testcase_28 AC 129 ms
8,240 KB
testcase_29 AC 128 ms
8,136 KB
testcase_30 AC 127 ms
8,088 KB
testcase_31 AC 128 ms
8,188 KB
testcase_32 AC 127 ms
8,068 KB
testcase_33 AC 128 ms
8,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

ans = [20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841]
s = raw_input().replace(".", "")
cnt = [0]*10
for si in s:
    cnt[int(si)] += 1

for i in xrange(10):
    if ans[i] < cnt[i]:
        a = i
    if ans[i] > cnt[i]:
        b = i
print a, b
0