結果
問題 |
No.98 円を描こう
|
ユーザー |
![]() |
提出日時 | 2024-08-22 12:06:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 5,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 835 ms |
コンパイル使用メモリ | 82,092 KB |
実行使用メモリ | 53,620 KB |
最終ジャッジ日時 | 2024-08-22 12:06:47 |
合計ジャッジ時間 | 2,397 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
def BinarySearch(yes, no): while abs(yes - no) != 1: mid = (yes + no)//2 if mid ** 2 > 4 * (a ** 2 + b ** 2): yes = mid else: no = mid return yes a, b = map(int, input().split()) print(BinarySearch(10 ** 9, -1))