結果
問題 | No.221 犯罪都市 |
ユーザー |
|
提出日時 | 2015-06-05 22:32:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 410 bytes |
コンパイル時間 | 426 ms |
コンパイル使用メモリ | 58,964 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 21:58:10 |
合計ジャッジ時間 | 1,031 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <utility> #include <string> using namespace std; int main() { int n; cin >> n; int people = 1000000; int per = 10000; int mafia = people / per * n; int normal = people - mafia; double arrested = 0.99 * mafia + 0.01 * normal; double ans = 0.01 * normal / arrested * 100; printf("%.3f\n", ans); return 0; }