結果
問題 | No.787 Mice and Traitors(ネズミ達と裏切り者) |
ユーザー |
|
提出日時 | 2019-02-08 22:18:50 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 516 ms |
コンパイル使用メモリ | 66,452 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 11:35:16 |
合計ジャッジ時間 | 1,046 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <iomanip> #include <string.h> using namespace std; #define all(x) (x).begin(), (x).end() int main(){ double P, Q; cin >> P >> Q; cout << fixed << setprecision(10) << double(P * Q) / (P * Q * 2 - P * 100 - Q * 100 + 10000) * 100 << endl; }