結果

問題 No.1700 floor X
ユーザー mkawa2mkawa2
提出日時 2021-10-08 21:52:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 796 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 10,976 KB
実行使用メモリ 8,824 KB
最終ジャッジ日時 2023-09-16 08:56:39
合計ジャッジ時間 3,139 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,828 KB
testcase_01 AC 30 ms
8,720 KB
testcase_02 AC 30 ms
8,820 KB
testcase_03 AC 30 ms
8,708 KB
testcase_04 AC 30 ms
8,784 KB
testcase_05 AC 30 ms
8,708 KB
testcase_06 AC 30 ms
8,700 KB
testcase_07 AC 30 ms
8,644 KB
testcase_08 AC 30 ms
8,736 KB
testcase_09 AC 30 ms
8,712 KB
testcase_10 AC 30 ms
8,792 KB
testcase_11 AC 30 ms
8,756 KB
testcase_12 AC 31 ms
8,636 KB
testcase_13 AC 30 ms
8,644 KB
testcase_14 AC 30 ms
8,640 KB
testcase_15 AC 31 ms
8,824 KB
testcase_16 AC 31 ms
8,780 KB
testcase_17 AC 30 ms
8,788 KB
testcase_18 AC 30 ms
8,820 KB
testcase_19 AC 29 ms
8,504 KB
testcase_20 AC 30 ms
8,776 KB
testcase_21 AC 33 ms
8,620 KB
testcase_22 AC 32 ms
8,624 KB
testcase_23 AC 32 ms
8,568 KB
testcase_24 AC 32 ms
8,492 KB
testcase_25 AC 32 ms
8,416 KB
testcase_26 AC 33 ms
8,540 KB
testcase_27 AC 32 ms
8,636 KB
testcase_28 AC 32 ms
8,624 KB
testcase_29 AC 33 ms
8,520 KB
testcase_30 AC 32 ms
8,480 KB
testcase_31 AC 33 ms
8,480 KB
testcase_32 AC 32 ms
8,588 KB
testcase_33 AC 32 ms
8,536 KB
testcase_34 AC 31 ms
8,516 KB
testcase_35 AC 32 ms
8,484 KB
testcase_36 AC 32 ms
8,608 KB
testcase_37 AC 34 ms
8,476 KB
testcase_38 AC 32 ms
8,612 KB
testcase_39 AC 32 ms
8,480 KB
testcase_40 AC 32 ms
8,540 KB
testcase_41 AC 32 ms
8,524 KB
testcase_42 AC 15 ms
7,764 KB
testcase_43 AC 33 ms
8,552 KB
testcase_44 AC 32 ms
8,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(200005)
int1 = lambda x: int(x)-1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
def SI(): return sys.stdin.readline().rstrip()
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
dij = [(0, 1), (1, 0), (0, -1), (-1, 0)]
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
inf = 10**19
# md = 998244353
md = 10**9+7

def floor_sqrt(x):
    a = round(x**0.5-0.45)+1
    while a**2 > x: a -= 1
    return a

for _ in range(II()):
    print(floor_sqrt(II()))
0