結果
| 問題 |
No.735 接線
|
| コンテスト | |
| ユーザー |
bal4u
|
| 提出日時 | 2019-05-04 03:53:23 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 188 bytes |
| コンパイル時間 | 1,684 ms |
| コンパイル使用メモリ | 27,008 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-01-03 06:02:23 |
| 合計ジャッジ時間 | 3,160 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%lf%lf", &r, &d);
| ^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
// yukicoder: No.735 接線
// 2019.5.4 bal4u
#include <stdio.h>
#include <math.h>
int main()
{
double r, d;
scanf("%lf%lf", &r, &d);
printf("%.12lf\n", sqrt(d*d-r*r));
return 0;
}
bal4u