結果
問題 |
No.2420 Simple Problem
|
ユーザー |
|
提出日時 | 2023-08-24 01:18:22 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 359 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 82,352 KB |
実行使用メモリ | 77,824 KB |
最終ジャッジ日時 | 2024-12-22 13:31:44 |
合計ジャッジ時間 | 30,607 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 31 |
ソースコード
from math import ceil def bisect(x): left, right = 0, 10**5 for _ in range(30): mid = (left + right) / 2 if mid**2 >= x: right = mid else: left = mid return right for _ in range(int(input())): a, b = map(int, input().split()) sqa = bisect(a) sqb = bisect(b) print(ceil(sqa + sqb))