結果
問題 | No.2420 Simple Problem |
ユーザー | nikoro256 |
提出日時 | 2023-08-12 15:27:50 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 454 bytes |
コンパイル時間 | 360 ms |
コンパイル使用メモリ | 82,364 KB |
実行使用メモリ | 76,784 KB |
最終ジャッジ日時 | 2024-04-30 09:24:19 |
合計ジャッジ時間 | 23,364 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 37 ms
52,680 KB |
testcase_01 | AC | 336 ms
76,128 KB |
testcase_02 | AC | 68 ms
67,544 KB |
testcase_03 | AC | 167 ms
75,940 KB |
testcase_04 | AC | 573 ms
76,332 KB |
testcase_05 | AC | 387 ms
76,148 KB |
testcase_06 | AC | 717 ms
76,784 KB |
testcase_07 | AC | 726 ms
76,192 KB |
testcase_08 | AC | 714 ms
76,368 KB |
testcase_09 | AC | 707 ms
76,372 KB |
testcase_10 | AC | 716 ms
75,996 KB |
testcase_11 | AC | 706 ms
76,004 KB |
testcase_12 | AC | 702 ms
76,368 KB |
testcase_13 | AC | 719 ms
76,420 KB |
testcase_14 | AC | 710 ms
76,208 KB |
testcase_15 | AC | 714 ms
76,584 KB |
testcase_16 | AC | 720 ms
76,200 KB |
testcase_17 | AC | 696 ms
76,040 KB |
testcase_18 | AC | 715 ms
76,376 KB |
testcase_19 | AC | 734 ms
76,416 KB |
testcase_20 | AC | 707 ms
76,332 KB |
testcase_21 | AC | 749 ms
76,168 KB |
testcase_22 | AC | 722 ms
76,416 KB |
testcase_23 | AC | 719 ms
76,500 KB |
testcase_24 | AC | 739 ms
76,132 KB |
testcase_25 | AC | 741 ms
76,456 KB |
testcase_26 | WA | - |
testcase_27 | AC | 574 ms
76,156 KB |
testcase_28 | AC | 583 ms
76,460 KB |
testcase_29 | AC | 580 ms
76,424 KB |
testcase_30 | AC | 584 ms
76,008 KB |
testcase_31 | AC | 612 ms
76,208 KB |
testcase_32 | AC | 38 ms
53,424 KB |
testcase_33 | AC | 321 ms
76,208 KB |
ソースコード
import math N=int(input()) for _ in range(N): A,B=map(int,input().split()) mi=0 left,right=0,5*10**5 while right-left>1: mid=(right+left)//2 if A+B<mid*mid: right=mid else: left=mid mi=right 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))