結果
問題 | No.787 Mice and Traitors(ネズミ達と裏切り者) |
ユーザー |
👑 ![]() |
提出日時 | 2019-02-08 22:45:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 695 bytes |
コンパイル時間 | 2,161 ms |
コンパイル使用メモリ | 191,908 KB |
最終ジャッジ日時 | 2025-01-06 21:02:05 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll=long; using pll=pair<ll,ll>; #define vec(type,name,...) vector<type>name(__VA_ARGS__) #define each(i,a) for(auto&i:a) #define name4(a,b,c,d,...) d #define rep(...) name4(__VA_ARGS__,rep3,rep2,rep1)(__VA_ARGS__) #define rep1(a) rep3(i,0,a) #define rep2(i,a) rep3(i,0,a) #define rep3(i,a,b) for(ll i=a;i<b;i++) const ll LINF=0x1fffffffffffffff; template <class T>bool update_min(T&a,const T&b){if(a>b){a=b;return 1;}return 0;} template <class T>bool update_max(T&a,const T&b){if(a<b){a=b;return 1;}return 0;} signed main(){ cout<<fixed<<setprecision(20); double p,q; cin>>p>>q; p/=100; q/=100; cout<<p*q/(p*q+(1-p)*(1-q))*100<<endl; }