結果
問題 | No.735 接線 |
ユーザー |
|
提出日時 | 2020-04-01 23:39:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 143 bytes |
コンパイル時間 | 434 ms |
コンパイル使用メモリ | 31,104 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 12:52:02 |
合計ジャッジ時間 | 1,309 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 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); | ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio> #include <cmath> int main(){ double r,d; scanf("%lf %lf",&r,&d); printf("%.8lf\n",sqrt(d*d-r*r)); return 0; }