結果
| 問題 |
No.159 刺さらないUSB
|
| コンテスト | |
| ユーザー |
tnoda_
|
| 提出日時 | 2015-03-05 21:12:33 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 425 bytes |
| コンパイル時間 | 522 ms |
| コンパイル使用メモリ | 61,548 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-01 23:43:00 |
| 合計ジャッジ時間 | 1,254 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include<cstdio>
#include<iostream>
#include<cctype>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;
#define ll long long
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
#define MD 1000000007
char sep[3] = " \n";
double PI = acos(-1);
int main() {
double p, q;
cin >> p >> q;
if (q*(1-p) < p*q*(1-q)) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
tnoda_