結果
| 問題 |
No.2420 Simple Problem
|
| コンテスト | |
| ユーザー |
Seed57_cash
|
| 提出日時 | 2023-06-21 10:08:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 281 bytes |
| コンパイル時間 | 343 ms |
| コンパイル使用メモリ | 82,440 KB |
| 実行使用メモリ | 88,040 KB |
| 最終ジャッジ日時 | 2024-06-28 19:55:58 |
| 合計ジャッジ時間 | 6,379 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 TLE * 2 -- * 29 |
ソースコード
# 小数の誤差がありそうなのでdeciamlでゴリ押す from decimal import Decimal def solve(a, b): r = Decimal(str(a)).sqrt() + Decimal(str(b)).sqrt() return int(r) + 1 # main n = int(input()) for _ in range(n): a, b = map(int, input().split()) print(solve(a, b))
Seed57_cash