結果

問題 No.1700 floor X
ユーザー DrDrpilotDrDrpilot
提出日時 2022-02-25 13:55:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 318 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 12,728 KB
最終ジャッジ日時 2023-09-16 06:07:55
合計ジャッジ時間 5,643 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,808 KB
testcase_01 AC 69 ms
7,792 KB
testcase_02 AC 67 ms
7,776 KB
testcase_03 AC 70 ms
7,812 KB
testcase_04 AC 68 ms
7,772 KB
testcase_05 AC 68 ms
7,740 KB
testcase_06 AC 68 ms
7,836 KB
testcase_07 AC 68 ms
7,836 KB
testcase_08 AC 67 ms
7,820 KB
testcase_09 AC 68 ms
7,980 KB
testcase_10 AC 68 ms
7,928 KB
testcase_11 AC 66 ms
7,816 KB
testcase_12 AC 67 ms
7,796 KB
testcase_13 AC 67 ms
7,804 KB
testcase_14 AC 69 ms
7,792 KB
testcase_15 AC 67 ms
7,828 KB
testcase_16 AC 67 ms
7,776 KB
testcase_17 AC 68 ms
7,812 KB
testcase_18 AC 67 ms
7,740 KB
testcase_19 AC 68 ms
7,804 KB
testcase_20 AC 67 ms
7,832 KB
testcase_21 TLE -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

t=int(input())
for _ in range(t):
    n=int(input())
    if n<=10**8:
        print(int(n**0.5))
    else:
        right=n;left=0
        while right-left>0.000000001:
            mid=(right+left)/2
            if mid**2>=n:
                right=mid
            else:
                left=mid
        print(int(left))
0