結果
問題 | No.735 接線 |
ユーザー |
![]() |
提出日時 | 2018-10-19 17:54:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 178 bytes |
コンパイル時間 | 265 ms |
コンパイル使用メモリ | 31,104 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 15:15:46 |
合計ジャッジ時間 | 1,129 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
コンパイルメッセージ
main.cpp: In function ‘int main(int, char**)’: main.cpp:8:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%lf %lf", &r, &d); | ~~~~~^~~~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio>#include <cmath>using namespace std;int main(int ac, char **av) {double r = 0, d = 0;scanf("%lf %lf", &r, &d);printf("%.06f\n", sqrt(d*d - r*r));}