結果

問題 No.221 犯罪都市
ユーザー itezpace
提出日時 2016-06-20 07:55:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 255 bytes
コンパイル時間 688 ms
コンパイル使用メモリ 61,408 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-25 10:54:48
合計ジャッジ時間 1,461 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
using namespace std;

int main(){
  double n,a,b,c,d,e,p,q,x;
  cin>>n;
  a=1000000;
  b=n*100;
  c=a-b;
  p=0.99;
  q=1;
  d=b*p;
  e=c*(1-p);
  x=e/(d+e)*100;
  cout<<fixed<<setprecision(3)<<x<<endl;
  return 0;
}
0