結果
問題 | No.2420 Simple Problem |
ユーザー |
![]() |
提出日時 | 2023-07-15 14:22:38 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 147 bytes |
コンパイル時間 | 140 ms |
コンパイル使用メモリ | 82,496 KB |
実行使用メモリ | 76,772 KB |
最終ジャッジ日時 | 2024-09-16 23:14:11 |
合計ジャッジ時間 | 23,110 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 27 WA * 6 |
ソースコード
import mathfor _ in range(int(input())):a, b = map(int, input().split())x = a + b + 2 * math.sqrt(a*b)print(math.floor(math.sqrt(x)) + 1)