結果
問題 | No.159 刺さらないUSB |
ユーザー |
![]() |
提出日時 | 2015-03-01 23:32:50 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 243 ms |
コンパイル使用メモリ | 37,220 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-24 00:41:17 |
合計ジャッジ時間 | 891 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 4 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%lf%lf",&p,&q); | ~~~~~^~~~~~~~~~~~~~~~
ソースコード
#include<cstdio>#include<algorithm>#include<vector>using namespace std;int main(){double p,q;scanf("%lf%lf",&p,&q);puts((1-p)*(1-q)<p*q*(1-q)?"YES":"NO");return 0;}