結果

問題 No.159 刺さらないUSB
ユーザー Bantako
提出日時 2017-07-22 16:20:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 125 bytes
コンパイル時間 1,505 ms
コンパイル使用メモリ 156,888 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 00:04:06
合計ジャッジ時間 2,044 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
main.cpp: In function ‘int main()’:
main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |     scanf("%lf%lf",&p,&q);
      |     ~~~~~^~~~~~~~~~~~~~~~

ソースコード

diff #

#include<bits/stdc++.h>
main(){
    double p,q;
    scanf("%lf%lf",&p,&q);
    printf("%s\n",(1-p)*q<p*q*(1-q)?"YES":"NO");
}
0