結果
| 問題 |
No.159 刺さらないUSB
|
| コンテスト | |
| ユーザー |
uafr_cs
|
| 提出日時 | 2015-05-15 17:52:24 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 192 bytes |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-01 23:45:28 |
| 合計ジャッジ時間 | 789 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%lf %lf", &p, &q);
| ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
double p, q, P1, P2;
scanf("%lf %lf", &p, &q);
P1 = q * (1 - p);
P2 = p * (1 - q) * q;
printf("%s\n", P1 < P2 ? "YES" : "NO");
return 0;
}
uafr_cs