結果

問題 No.1700 floor X
ユーザー koba-e964koba-e964
提出日時 2021-10-08 22:53:31
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 78,340 KB
最終ジャッジ日時 2023-09-16 09:21:47
合計ジャッジ時間 8,022 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,036 KB
testcase_01 AC 136 ms
77,956 KB
testcase_02 AC 130 ms
77,692 KB
testcase_03 AC 130 ms
77,876 KB
testcase_04 AC 133 ms
77,924 KB
testcase_05 AC 130 ms
77,940 KB
testcase_06 AC 129 ms
78,052 KB
testcase_07 AC 129 ms
77,876 KB
testcase_08 AC 133 ms
77,636 KB
testcase_09 AC 131 ms
77,776 KB
testcase_10 AC 134 ms
77,924 KB
testcase_11 AC 130 ms
77,832 KB
testcase_12 AC 130 ms
77,996 KB
testcase_13 AC 128 ms
77,972 KB
testcase_14 AC 130 ms
77,848 KB
testcase_15 AC 133 ms
77,936 KB
testcase_16 AC 127 ms
77,696 KB
testcase_17 AC 133 ms
78,020 KB
testcase_18 AC 131 ms
77,884 KB
testcase_19 AC 128 ms
77,612 KB
testcase_20 AC 129 ms
78,168 KB
testcase_21 AC 140 ms
78,260 KB
testcase_22 AC 136 ms
78,204 KB
testcase_23 AC 137 ms
78,264 KB
testcase_24 AC 136 ms
78,044 KB
testcase_25 AC 137 ms
78,120 KB
testcase_26 AC 135 ms
78,084 KB
testcase_27 AC 137 ms
78,176 KB
testcase_28 AC 136 ms
78,264 KB
testcase_29 AC 137 ms
78,212 KB
testcase_30 AC 138 ms
78,268 KB
testcase_31 AC 137 ms
78,068 KB
testcase_32 AC 139 ms
78,340 KB
testcase_33 AC 139 ms
78,288 KB
testcase_34 AC 139 ms
78,108 KB
testcase_35 AC 138 ms
77,948 KB
testcase_36 AC 137 ms
77,920 KB
testcase_37 AC 138 ms
77,992 KB
testcase_38 AC 135 ms
78,052 KB
testcase_39 AC 135 ms
78,228 KB
testcase_40 AC 137 ms
78,004 KB
testcase_41 AC 128 ms
78,316 KB
testcase_42 AC 70 ms
71,264 KB
testcase_43 AC 132 ms
78,108 KB
testcase_44 AC 132 ms
78,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

def sq(n):
    hi = 1000000001
    lo = 0
    while hi - lo > 1:
        mid = (hi + lo) // 2
        if mid * mid <= n:
            lo = mid
        else:
            hi = mid
    return lo

t = int(input())

for _ in range(t):
    n = int(input())
    print(int(sq(n)))
0