結果

問題 No.159 刺さらないUSB
ユーザー yukiteru
提出日時 2018-02-06 21:58:48
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 641 bytes
コンパイル時間 701 ms
コンパイル使用メモリ 80,732 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 00:06:17
合計ジャッジ時間 1,490 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#include<stack>
#include<queue>
#include<list>
#include<bitset>
#include<functional>

#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007
#define INF 1000000000
#define PI 3.14159265358979

using namespace std;
typedef pair<int, int> P;

int main(void) {
	double p, q;
	double p1, p2;

	cin >> p >> q;

	p1 = (1 - p)*q;
	p2 = p*q*(1 - q);

	if (p1 < p2) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}
	return 0;
}
0