結果
問題 | No.2420 Simple Problem |
ユーザー | hikikomori |
提出日時 | 2023-06-21 00:27:19 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 1,362 ms |
コンパイル使用メモリ | 10,652 KB |
実行使用メモリ | 13,764 KB |
最終ジャッジ日時 | 2023-09-10 20:31:06 |
合計ジャッジ時間 | 20,335 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 20 ms
9,304 KB |
testcase_01 | AC | 1,103 ms
9,240 KB |
testcase_02 | AC | 31 ms
9,292 KB |
testcase_03 | AC | 411 ms
9,388 KB |
testcase_04 | TLE | - |
testcase_05 | AC | 1,373 ms
9,240 KB |
testcase_06 | TLE | - |
testcase_07 | TLE | - |
testcase_08 | TLE | - |
testcase_09 | TLE | - |
testcase_10 | TLE | - |
testcase_11 | TLE | - |
testcase_12 | TLE | - |
testcase_13 | TLE | - |
testcase_14 | TLE | - |
testcase_15 | TLE | - |
testcase_16 | TLE | - |
testcase_17 | TLE | - |
testcase_18 | TLE | - |
testcase_19 | TLE | - |
testcase_20 | TLE | - |
testcase_21 | TLE | - |
testcase_22 | TLE | - |
testcase_23 | TLE | - |
testcase_24 | TLE | - |
testcase_25 | TLE | - |
testcase_26 | AC | 22 ms
9,260 KB |
testcase_27 | TLE | - |
testcase_28 | TLE | - |
testcase_29 | TLE | - |
testcase_30 | TLE | - |
testcase_31 | TLE | - |
testcase_32 | AC | 22 ms
9,056 KB |
testcase_33 | AC | 1,072 ms
9,340 KB |
ソースコード
from math import floor from decimal import Decimal from sys import stdin N = int(input()) for i in range(N): a, b = map(int, stdin.readline().split()) a = Decimal(a).sqrt() b = Decimal(b).sqrt() print(floor(a+b+1))