結果
| 問題 |
No.159 刺さらないUSB
|
| コンテスト | |
| ユーザー |
prog470
|
| 提出日時 | 2016-09-13 17:21:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 456 bytes |
| コンパイル時間 | 543 ms |
| コンパイル使用メモリ | 68,572 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-01 23:59:29 |
| 合計ジャッジ時間 | 1,230 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include<stdio.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <string>
#include <stdio.h>
using namespace std;
int main() {
double p, q;
cin >> p >> q;
/*
cout << "1 " << ((1 - p)*q)<<endl;
cout << "2 " << p*(1-q)*q << endl;
*/
if (((1 - p)*q) < p*(1 - q)*q) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
prog470