結果

問題 No.1178 Can you draw a Circle?
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2020-08-21 22:12:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 80,256 KB
最終ジャッジ日時 2024-04-25 04:01:45
合計ジャッジ時間 3,076 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
80,256 KB
testcase_01 AC 118 ms
80,128 KB
testcase_02 AC 128 ms
80,220 KB
testcase_03 AC 129 ms
80,224 KB
testcase_04 AC 123 ms
80,256 KB
testcase_05 AC 123 ms
80,128 KB
testcase_06 AC 122 ms
80,012 KB
testcase_07 AC 119 ms
79,872 KB
testcase_08 AC 123 ms
80,032 KB
testcase_09 AC 121 ms
80,256 KB
testcase_10 AC 122 ms
80,180 KB
testcase_11 AC 125 ms
80,000 KB
testcase_12 AC 123 ms
80,128 KB
testcase_13 AC 122 ms
80,184 KB
testcase_14 AC 120 ms
80,112 KB
testcase_15 AC 120 ms
80,256 KB
testcase_16 AC 124 ms
80,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
a,b,c,d,e,f = input().split()
a = Decimal(a)
b = Decimal(b)
c = Decimal(c)
d = Decimal(d)
e = Decimal(e)
f = Decimal(f)

f -= e

c /= a
d /= a
f /= a

f += (c**Decimal('2'))/Decimal('4')
f += (d**Decimal('2'))/Decimal('4')



#print (a,f)

print (abs(f)**Decimal('0.5'))
0