結果

問題 No.787 Mice and Traitors(ネズミ達と裏切り者)
ユーザー 👑 tatyamtatyam
提出日時 2019-02-08 22:45:28
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 695 bytes
コンパイル時間 2,430 ms
コンパイル使用メモリ 197,020 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-14 03:52:35
合計ジャッジ時間 3,091 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#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;
}
0