結果
問題 | No.787 Mice and Traitors(ネズミ達と裏切り者) |
ユーザー |
![]() |
提出日時 | 2022-07-30 14:21:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 393 bytes |
コンパイル時間 | 3,906 ms |
コンパイル使用メモリ | 251,472 KB |
最終ジャッジ日時 | 2025-01-30 16:40:03 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace atcoder; using mint = modint1000000007; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000000000000 int main() { double p,q; cin>>p>>q; p/=100.0; q/=100.0; double ans = p*q; ans /= p*q + (1-p) * (1-q); ans *= 100.0; cout<<fixed<<setprecision(10)<<ans<<endl; return 0; }