結果

問題 No.353 ヘイトプラス
ユーザー JSCLabsJSCLabs
提出日時 2016-04-08 23:23:51
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 22,656 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-14 23:29:41
合計ジャッジ時間 1,252 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 0 ms
6,940 KB
testcase_02 AC 0 ms
6,940 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 0 ms
6,940 KB
testcase_06 WA -
testcase_07 AC 0 ms
6,940 KB
testcase_08 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%lf %lf",&A,&B);
      |         ^~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <math.h>

int main()
{
	double A,B,C;
	scanf("%lf %lf",&A,&B);
	
	C = (pow(A,2) - pow(B,2))/(A-B);
	
	printf("%g\n",C);
	
	return 0;
}
0