結果
| 問題 |
No.2420 Simple Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-23 09:29:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 134 bytes |
| コンパイル時間 | 260 ms |
| コンパイル使用メモリ | 81,976 KB |
| 実行使用メモリ | 77,648 KB |
| 最終ジャッジ日時 | 2024-09-29 04:57:42 |
| 合計ジャッジ時間 | 23,522 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 14 WA * 19 |
ソースコード
from math import isqrt for _ in range(int(input())): A, B = map(int, input().split()) print(isqrt(A + B + 2 * isqrt(A * B) + 1) + 1)