結果

問題 No.313 π
ユーザー nebukuro09nebukuro09
提出日時 2016-10-24 11:25:25
言語 Python2
(2.7.18)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 268 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 6,960 KB
実行使用メモリ 6,304 KB
最終ジャッジ日時 2023-08-15 18:34:00
合計ジャッジ時間 1,761 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
6,192 KB
testcase_01 AC 15 ms
6,200 KB
testcase_02 AC 15 ms
6,168 KB
testcase_03 AC 14 ms
6,304 KB
testcase_04 AC 13 ms
6,104 KB
testcase_05 AC 13 ms
6,296 KB
testcase_06 AC 13 ms
6,240 KB
testcase_07 AC 13 ms
6,096 KB
testcase_08 AC 13 ms
6,096 KB
testcase_09 AC 13 ms
6,176 KB
testcase_10 AC 14 ms
6,180 KB
testcase_11 AC 13 ms
6,268 KB
testcase_12 AC 13 ms
6,288 KB
testcase_13 AC 13 ms
6,240 KB
testcase_14 AC 13 ms
6,116 KB
testcase_15 AC 13 ms
6,128 KB
testcase_16 AC 13 ms
6,128 KB
testcase_17 AC 13 ms
6,104 KB
testcase_18 AC 13 ms
6,296 KB
testcase_19 AC 13 ms
6,132 KB
testcase_20 AC 13 ms
6,164 KB
testcase_21 AC 12 ms
6,116 KB
testcase_22 AC 13 ms
6,292 KB
testcase_23 AC 14 ms
6,136 KB
testcase_24 AC 12 ms
6,300 KB
testcase_25 AC 13 ms
6,100 KB
testcase_26 AC 13 ms
6,112 KB
testcase_27 AC 13 ms
6,296 KB
testcase_28 AC 13 ms
6,196 KB
testcase_29 AC 13 ms
6,188 KB
testcase_30 AC 13 ms
6,160 KB
testcase_31 AC 13 ms
6,244 KB
testcase_32 AC 13 ms
6,100 KB
testcase_33 AC 14 ms
6,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

d = {0: 20104, 1: 20063, 2: 19892, 3: 20011, 4: 19874, 5: 20199, 6: 19898, 7: 20163, 8: 19956, 9: 19841}
a = raw_input()
d2 = {i:a.count(str(i)) for i in xrange(10)}
for i in xrange(10):
    if d[i] < d2[i]:
        x = i
    if d[i] > d2[i]:
        y = i
print x, y
0