結果
| 問題 | No.787 Mice and Traitors(ネズミ達と裏切り者) | 
| コンテスト | |
| ユーザー |  addeight2 | 
| 提出日時 | 2019-02-09 15:50:44 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 242 bytes | 
| コンパイル時間 | 1,241 ms | 
| コンパイル使用メモリ | 156,516 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-01 19:13:32 | 
| 合計ジャッジ時間 | 1,860 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         scanf("%lf %lf",&P,&Q);
      |         ~~~~~^~~~~~~~~~~~~~~~~
            
            ソースコード
#include <bits/stdc++.h>
typedef long long ll;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,a) FOR(i,0,a)
	
using namespace std;
double P,Q;
int main(){
	scanf("%lf %lf",&P,&Q);
	printf("%.12f\n",P*Q*100/(P*Q+(100-P)*(100-Q)));
}
            
            
            
        