結果
問題 |
No.159 刺さらないUSB
|
ユーザー |
![]() |
提出日時 | 2015-09-08 16:15:42 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 128 ms |
コンパイル使用メモリ | 20,736 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 23:51:42 |
合計ジャッジ時間 | 892 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lf %lf", &p, &q); | ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ double p, q; scanf("%lf %lf", &p, &q); if(1.0-p < p-p*q){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }