結果

問題 No.221 犯罪都市
ユーザー SotaUN
提出日時 2020-11-02 21:45:20
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 493 bytes
コンパイル時間 832 ms
コンパイル使用メモリ 91,036 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-22 08:05:40
合計ジャッジ時間 1,378 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <queue>
#include <cmath>
#include <climits>
#include <iomanip>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
int main(){
    ll n;
    cin >> n;
    double tt = n * 100 * 0.99;
    double tf = n * 100 * 0.01;
    double ff = (10000 - n) * 100 * 0.99;
    double ft = (10000 - n) * 100 * 0.01;
    
    cout << fixed << setprecision(10) << (double)(100 * ft / (tt + ft)) << endl;
}
0