結果
問題 |
No.159 刺さらないUSB
|
ユーザー |
|
提出日時 | 2020-06-11 18:39:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 1,064 ms |
コンパイル使用メモリ | 93,688 KB |
最終ジャッジ日時 | 2025-01-11 01:17:16 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <set> #include <map> #include <math.h> #include <deque> using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); double p,q; cin >> p >> q; if(1-p<p*(1-q)){ printf("YES\n"); } else{ printf("NO\n"); } }