結果
問題 | No.221 犯罪都市 |
ユーザー |
|
提出日時 | 2015-06-05 22:31:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 448 bytes |
コンパイル時間 | 1,630 ms |
コンパイル使用メモリ | 157,320 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 21:57:45 |
合計ジャッジ時間 | 2,176 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define fr(i, a, b) for (int i = (a); i < (b); i++) #define all(c) (c).begin(), (c).end() using namespace std; typedef long long ll; const ll inf = 1e9; const ll mod = 1e9 + 7; int main() { double N; cin >> N; double E = 0; E += 0.01 * (1000000 - N * 100); double X = (1000000 - N * 100) * 0.01 + 0.99 * N * 100; printf("%.15f\n", E / X * 100); }