結果

問題 No.735 接線
ユーザー greentea011
提出日時 2018-10-04 10:39:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 125 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 22,656 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-12 11:17:08
合計ジャッジ時間 1,064 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |     scanf("%lf %lf", &r, &d);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main() {
    double r,d;
    scanf("%lf %lf", &r, &d);
    printf("%lf\n", d*d-r*r);
    return 0;
}
0