結果

問題 No.787 Mice and Traitors(ネズミ達と裏切り者)
ユーザー PachicobuePachicobue
提出日時 2019-02-08 21:40:32
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 2,086 ms
コンパイル使用メモリ 196,936 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-11 04:09:00
合計ジャッジ時間 2,710 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 WA -
testcase_02 AC 2 ms
4,380 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using ll = long long;
using ld = long double;
template <typename T>
constexpr T MOD() { return 1000000007; }
template <typename T>
constexpr T INF() { return std::numeric_limits<T>::max() / 16; }
int main()
{
    ll P, Q;
    std::cin >> P >> Q;
    std::cout << std::fixed << std::setprecision(15) << (ld)(100 * P * Q) / (P * Q + (100 - P) * (100 - Q)) << std::endl;
    return 0;
}
0