結果

問題 No.787 Mice and Traitors(ネズミ達と裏切り者)
ユーザー srjywrdnprkt
提出日時 2024-02-09 17:21:30
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 1,945 ms
コンパイル使用メモリ 192,488 KB
最終ジャッジ日時 2025-02-19 03:02:12
ジャッジサーバーID
(参考情報)
judge1 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

int main(){
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);

    long double a, b, c, d;
    cin >> a >> b;
    c = a*b;
    d = c+(100.l-a)*(100.l-b);
    cout << fixed << setprecision(18) << c/d*100.l << '\n';

    return 0;
}
0