結果
問題 | No.2420 Simple Problem |
ユーザー | nikoro256 |
提出日時 | 2023-08-12 15:30:15 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 736 ms / 2,000 ms |
コード長 | 453 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 82,372 KB |
実行使用メモリ | 76,744 KB |
最終ジャッジ日時 | 2024-04-30 09:39:12 |
合計ジャッジ時間 | 23,578 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 39 ms
52,676 KB |
testcase_01 | AC | 338 ms
75,936 KB |
testcase_02 | AC | 66 ms
68,492 KB |
testcase_03 | AC | 168 ms
75,992 KB |
testcase_04 | AC | 589 ms
76,312 KB |
testcase_05 | AC | 400 ms
76,044 KB |
testcase_06 | AC | 736 ms
76,668 KB |
testcase_07 | AC | 705 ms
76,012 KB |
testcase_08 | AC | 719 ms
76,540 KB |
testcase_09 | AC | 733 ms
76,132 KB |
testcase_10 | AC | 705 ms
76,552 KB |
testcase_11 | AC | 707 ms
76,132 KB |
testcase_12 | AC | 703 ms
76,132 KB |
testcase_13 | AC | 708 ms
76,684 KB |
testcase_14 | AC | 717 ms
76,440 KB |
testcase_15 | AC | 724 ms
76,268 KB |
testcase_16 | AC | 722 ms
76,136 KB |
testcase_17 | AC | 715 ms
76,560 KB |
testcase_18 | AC | 713 ms
76,264 KB |
testcase_19 | AC | 715 ms
76,440 KB |
testcase_20 | AC | 709 ms
76,112 KB |
testcase_21 | AC | 720 ms
76,396 KB |
testcase_22 | AC | 716 ms
76,212 KB |
testcase_23 | AC | 700 ms
76,744 KB |
testcase_24 | AC | 707 ms
76,252 KB |
testcase_25 | AC | 724 ms
75,940 KB |
testcase_26 | AC | 41 ms
52,964 KB |
testcase_27 | AC | 588 ms
76,196 KB |
testcase_28 | AC | 589 ms
76,072 KB |
testcase_29 | AC | 589 ms
76,132 KB |
testcase_30 | AC | 583 ms
76,064 KB |
testcase_31 | AC | 601 ms
76,416 KB |
testcase_32 | AC | 39 ms
53,024 KB |
testcase_33 | AC | 327 ms
76,000 KB |
ソースコード
import math N=int(input()) for _ in range(N): A,B=map(int,input().split()) mi=0 left,right=0,6*10**5 while right-left>1: mid=(right+left)//2 if A+B<mid*mid: right=mid else: left=mid mi=left left,right=mi,7*10**4 while right-left>1: mid=(right+left)//2 if 4*A*B<(mid**2-A-B)**2: right=mid else: left=mid print(int(right))