結果

問題 No.2508 Discriminant
ユーザー Kakisuke1005
提出日時 2023-10-22 10:56:46
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 20,224 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-22 09:36:21
合計ジャッジ時間 881 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |         scanf("%d %d %d",&a,&p,&q);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
int main(){
	int a,p,q,b,c;
	scanf("%d %d %d",&a,&p,&q);
	b = (p+q)*a;
	c = p*q*a;
	if( (b*b) > 4*a*c ){
		printf("Yes");
	}else{
		printf("No");
	}
}
0