結果

問題 No.221 犯罪都市
ユーザー steek79steek79
提出日時 2015-10-21 23:03:23
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 480 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 6,532 KB
実行使用メモリ 6,192 KB
最終ジャッジ日時 2023-08-26 09:04:28
合計ジャッジ時間 939 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,064 KB
testcase_01 AC 10 ms
6,116 KB
testcase_02 AC 10 ms
5,984 KB
testcase_03 AC 11 ms
6,112 KB
testcase_04 AC 11 ms
5,972 KB
testcase_05 AC 12 ms
5,984 KB
testcase_06 AC 12 ms
5,972 KB
testcase_07 AC 11 ms
6,012 KB
testcase_08 AC 11 ms
5,984 KB
testcase_09 AC 10 ms
6,192 KB
testcase_10 AC 10 ms
6,164 KB
testcase_11 AC 10 ms
5,976 KB
testcase_12 AC 10 ms
6,100 KB
testcase_13 AC 9 ms
6,104 KB
testcase_14 AC 10 ms
5,972 KB
testcase_15 AC 10 ms
5,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
# -*- coding: utf-8 -*-

N = float(input())

all = 1000000
criminal = 100 * N
innocent = all - criminal

# 対象がマフィアで逮捕 → ok
arrest_ok = (criminal / all) * 0.99
# 対象がパンピーで逮捕 → 人権侵害
arrest_mis = (innocent / all) * 0.01
# 対象がマフィアで不逮捕 → 治安悪化
(criminal / all) * 0.01
# 対象がパンピーで不逮捕 → ok
(innocent / all) * 0.99

print 100 * arrest_mis / (arrest_ok + arrest_mis)
0