結果
| 問題 | 
                            No.159 刺さらないUSB
                             | 
                    
| コンテスト | |
| ユーザー | 
                             友利奈緒
                         | 
                    
| 提出日時 | 2015-03-21 14:07:46 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 811 bytes | 
| コンパイル時間 | 1,163 ms | 
| コンパイル使用メモリ | 159,224 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-28 23:54:08 | 
| 合計ジャッジ時間 | 1,962 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 WA * 5 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef pair<int, int> pii;
typedef long long ll;
typedef unsigned long long ull;
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define pb push_back
#define mp make_pair
#define loop(i,a,b) for(ull i=(a);i<ull(b);++i)
#define rep(i,n) loop(i,0,n)
#define iter(i,c) for(auto i=(c).begin(); i!=(c).end(); ++i)
#define riter(i,c) for(auto i=(c).rbegin(); i!=(c).rend(); ++i)
const double eps = 1e-10;
const double pi = acos(-1.0);
const double inf = (int)1e8;
int main(){
  double p,q;
  cin >> p >> q;
  double p1,p2;
  p1=(1-p)*q;
  p2=p*q/2;
  if(p1<p2) cout << "YES" << endl;
  else cout << "NO" << endl;
}
            
            
            
        
            
友利奈緒