結果

問題 No.735 接線
ユーザー MaboyMaboy
提出日時 2021-06-22 11:01:13
言語 Swift
(5.10.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 3,051 ms
コンパイル使用メモリ 147,864 KB
実行使用メモリ 13,448 KB
最終ジャッジ日時 2023-09-05 11:36:06
合計ジャッジ時間 3,059 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
12,616 KB
testcase_01 AC 6 ms
12,796 KB
testcase_02 AC 6 ms
13,208 KB
testcase_03 AC 6 ms
13,116 KB
testcase_04 AC 6 ms
13,124 KB
testcase_05 AC 6 ms
12,904 KB
testcase_06 AC 6 ms
13,124 KB
testcase_07 AC 6 ms
12,620 KB
testcase_08 AC 6 ms
12,780 KB
testcase_09 AC 6 ms
13,356 KB
testcase_10 AC 6 ms
12,900 KB
testcase_11 AC 6 ms
13,052 KB
testcase_12 AC 6 ms
12,648 KB
testcase_13 AC 6 ms
12,980 KB
testcase_14 AC 6 ms
13,192 KB
testcase_15 AC 6 ms
13,084 KB
testcase_16 AC 6 ms
12,900 KB
testcase_17 AC 6 ms
12,776 KB
testcase_18 AC 6 ms
12,884 KB
testcase_19 AC 6 ms
13,056 KB
testcase_20 AC 6 ms
12,616 KB
testcase_21 AC 6 ms
13,196 KB
testcase_22 AC 6 ms
13,040 KB
testcase_23 AC 5 ms
12,612 KB
testcase_24 AC 6 ms
12,796 KB
testcase_25 AC 6 ms
13,040 KB
testcase_26 AC 6 ms
12,896 KB
testcase_27 AC 6 ms
13,052 KB
testcase_28 AC 6 ms
13,448 KB
testcase_29 AC 6 ms
13,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import Foundation
let n = readLine()!.split(separator: " ").map{Double($0)!}
let (r,d) = (n[0],n[1])
print(sqrt(pow(d,2)-pow(r,2)))
0