結果
問題 |
No.1064 ∪∩∩ / Cup Cap Cap
|
ユーザー |
![]() |
提出日時 | 2020-07-13 16:17:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 47 ms / 2,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-11-07 19:26:15 |
合計ジャッジ時間 | 3,107 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 36 |
ソースコード
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)