結果
| 問題 |
No.2420 Simple Problem
|
| コンテスト | |
| ユーザー |
bluebery1001
|
| 提出日時 | 2023-08-12 13:59:12 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 213 bytes |
| コンパイル時間 | 248 ms |
| コンパイル使用メモリ | 82,384 KB |
| 実行使用メモリ | 174,784 KB |
| 最終ジャッジ日時 | 2024-11-19 16:55:57 |
| 合計ジャッジ時間 | 92,872 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 TLE * 29 |
ソースコード
import math
from decimal import *
n = int(input())
for i in range(n):
a,b = map(Decimal,input().split())
a = a.sqrt()
b = b.sqrt()
print(math.ceil(a+b) if math.ceil(a+b)!=a+b else math.ceil(a+b)+1)
bluebery1001