結果
| 問題 |
No.2420 Simple Problem
|
| コンテスト | |
| ユーザー |
Suzux
|
| 提出日時 | 2023-08-12 14:59:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 194 bytes |
| コンパイル時間 | 302 ms |
| コンパイル使用メモリ | 82,436 KB |
| 実行使用メモリ | 77,888 KB |
| 最終ジャッジ日時 | 2024-11-19 22:30:36 |
| 合計ジャッジ時間 | 10,420 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 27 WA * 6 |
ソースコード
from sys import stdin
n = int(input())
for _ in range(n):
a, b = list(map(int, stdin.readline().split()))
temp = a + b + int(2*(a*b)**0.5)
temp = int(temp ** 0.5)
print(temp+1)
Suzux