結果
問題 |
No.1064 ∪∩∩ / Cup Cap Cap
|
ユーザー |
![]() |
提出日時 | 2020-07-13 16:16:19 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 331 bytes |
コンパイル時間 | 319 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-11-07 19:24:25 |
合計ジャッジ時間 | 3,036 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 14 WA * 22 |
ソースコード
a,b,c,d = map(int,input().split()) x_1 = (-1*(a-c)+((a-c)**2-4*2*(b-d))**0.5)/4 x_2 = (-1*(a-c)-((a-c)**2-4*2*(b-d))**0.5)/4 if isinstance(x_1, complex): print('NO') elif x_1 == x_2: print('YES') else: y_1 = x_1**2 + a*x_1 + b y_2 = x_2**2 + a*x_2 + b p = (y_2-y_1)/(x_2-x_1) q = y_1-p*x_1 print(p, q)