結果

問題 No.221 犯罪都市
ユーザー hotpepsi
提出日時 2015-06-05 23:56:18
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 366 bytes
コンパイル時間 525 ms
コンパイル使用メモリ 63,396 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 22:22:49
合計ジャッジ時間 1,279 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <sstream>
#include <vector>
#include <cstring>

using namespace std;

int main(int argc, char *argv[]) {
	cout.precision(10);
	string s;
	getline(cin, s);
	double N = atoi(s.c_str()) * 100;
	double a = (1000000.0 - N) * 0.01;
	double b = N * 0.99;
	double ans = a / (a + b) * 100;
	cout << ans << endl;
	return 0;
}
0