結果
| 問題 | No.159 刺さらないUSB |
| コンテスト | |
| ユーザー |
siguma323
|
| 提出日時 | 2016-05-23 10:00:26 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| + 197µs | |
| コード長 | 614 bytes |
| 記録 | |
| コンパイル時間 | 682 ms |
| コンパイル使用メモリ | 108,508 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-03 15:26:03 |
| 合計ジャッジ時間 | 1,632 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <vector>
#include <string>
#include <algorithm>
#include <numeric>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <utility>
#include <list>
#include <functional>
#include <queue>
#include <map>
#include <iterator>
#include <iomanip>
#include <complex>
using namespace std;
using ull = unsigned long long;
using ll = long long;
int main()
{
double p,q;
cin >> p >> q;
double result1 = 0;
double result2 = 0;
result1 = (1-p)*q;
result2 = p*(1-q)*q;
if(result1 < result2)
{
cout << "YES" << endl;
}
else
{
cout << "NO" << endl;
}
}
siguma323