結果
問題 |
No.2420 Simple Problem
|
ユーザー |
![]() |
提出日時 | 2023-08-19 06:34:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 1,267 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 28,452 KB |
最終ジャッジ日時 | 2024-11-28 20:46:39 |
合計ジャッジ時間 | 86,801 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 WA * 1 TLE * 26 |
ソースコード
from math import sqrt N=int(input()) for i in range(N): a,b=map(int,input().split()) t=round(sqrt(a)+sqrt(b)) for x in range(t-3,t+4): if 2*x*x*a+2*x*x*b<x*x*x*x+a*a+b*b-2*a*b: print(x) break