結果

問題 No.221 犯罪都市
ユーザー forest3
提出日時 2025-03-27 21:01:40
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 556 bytes
コンパイル時間 1,736 ms
コンパイル使用メモリ 162,164 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-27 21:01:43
合計ジャッジ時間 2,659 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#include <atcoder/lazysegtree>
using namespace atcoder;

int op(int a, int b) {return max(a, b);}
int e() {return 0;}
int mapping(int f, int x) {return f + x;}
int composition(int f, int g) {return f + g;}
int id() {return 0;}

using ll = long long;
#define rep(i, n) for(int i = 0; i < n; i++)

int main() {
	int N;
	cin >> N;
	int all = 1000000;
	double c = all / 10000 * N;
	double d = all - c;
	double e = d / 100;
	double f = e + c * 99 / 100;
	cout << fixed << setprecision(12) << e * 100 / f << endl;
}
0