結果
問題 | No.2420 Simple Problem |
ユーザー | nikoro256 |
提出日時 | 2023-08-12 14:24:29 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 290 bytes |
コンパイル時間 | 264 ms |
コンパイル使用メモリ | 82,240 KB |
実行使用メモリ | 77,408 KB |
最終ジャッジ日時 | 2024-04-30 06:02:32 |
合計ジャッジ時間 | 41,676 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 32 ms
54,020 KB |
testcase_01 | AC | 625 ms
76,684 KB |
testcase_02 | AC | 67 ms
73,140 KB |
testcase_03 | AC | 289 ms
76,840 KB |
testcase_04 | AC | 1,195 ms
77,088 KB |
testcase_05 | AC | 777 ms
76,300 KB |
testcase_06 | AC | 1,434 ms
76,940 KB |
testcase_07 | AC | 1,401 ms
77,208 KB |
testcase_08 | AC | 1,405 ms
76,868 KB |
testcase_09 | AC | 1,447 ms
77,340 KB |
testcase_10 | AC | 1,415 ms
77,092 KB |
testcase_11 | AC | 1,425 ms
76,760 KB |
testcase_12 | AC | 1,425 ms
76,812 KB |
testcase_13 | AC | 1,392 ms
76,936 KB |
testcase_14 | AC | 1,459 ms
76,724 KB |
testcase_15 | AC | 1,423 ms
76,932 KB |
testcase_16 | AC | 1,399 ms
76,948 KB |
testcase_17 | AC | 1,407 ms
77,352 KB |
testcase_18 | AC | 1,455 ms
77,336 KB |
testcase_19 | AC | 1,393 ms
77,060 KB |
testcase_20 | AC | 1,444 ms
76,600 KB |
testcase_21 | AC | 1,398 ms
76,992 KB |
testcase_22 | AC | 1,425 ms
77,168 KB |
testcase_23 | AC | 1,445 ms
76,916 KB |
testcase_24 | AC | 1,397 ms
76,688 KB |
testcase_25 | AC | 1,414 ms
77,100 KB |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | AC | 32 ms
52,196 KB |
testcase_33 | AC | 599 ms
76,632 KB |
ソースコード
import math N=int(input()) for _ in range(N): A,B=map(int,input().split()) left,right=(math.sqrt(A+B)-1)//1+1,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))