結果
問題 |
No.2420 Simple Problem
|
ユーザー |
![]() |
提出日時 | 2023-06-21 10:09:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 281 bytes |
コンパイル時間 | 110 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,640 KB |
最終ジャッジ日時 | 2024-06-28 19:56:47 |
合計ジャッジ時間 | 8,038 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 TLE * 1 -- * 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))