結果
| 問題 | No.2420 Simple Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-21 00:14:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 310 ms |
| コンパイル使用メモリ | 85,404 KB |
| 実行使用メモリ | 188,828 KB |
| 最終ジャッジ日時 | 2026-03-17 03:22:35 |
| 合計ジャッジ時間 | 93,580 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 TLE * 30 |
ソースコード
from decimal import Decimal
import math
n = int(input())
for _ in range(n):
a, b = map(int, input().split())
print(math.ceil(Decimal(a)**Decimal('0.5') + Decimal(b)**Decimal('0.5') + Decimal('0.0000000000000001')))