結果
問題 | No.1178 Can you draw a Circle? |
ユーザー |
👑 ![]() |
提出日時 | 2020-08-21 22:23:46 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 130 ms / 2,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 495 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 80,128 KB |
最終ジャッジ日時 | 2024-11-07 14:01:56 |
合計ジャッジ時間 | 3,519 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
from decimal import * a,b,c,d,e,f = input().split() if a != b: print (0) 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'))