結果

問題 No.1700 floor X
ユーザー DrDrpilotDrDrpilot
提出日時 2022-02-25 13:56:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 649 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 77,960 KB
最終ジャッジ日時 2023-09-16 06:10:10
合計ジャッジ時間 10,025 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,444 KB
testcase_01 AC 132 ms
77,960 KB
testcase_02 AC 127 ms
77,944 KB
testcase_03 AC 129 ms
77,684 KB
testcase_04 AC 126 ms
77,828 KB
testcase_05 AC 123 ms
77,648 KB
testcase_06 AC 125 ms
77,860 KB
testcase_07 AC 126 ms
77,800 KB
testcase_08 AC 127 ms
77,516 KB
testcase_09 AC 129 ms
77,604 KB
testcase_10 AC 126 ms
77,704 KB
testcase_11 AC 127 ms
77,820 KB
testcase_12 AC 125 ms
77,648 KB
testcase_13 AC 127 ms
77,820 KB
testcase_14 AC 126 ms
77,856 KB
testcase_15 AC 126 ms
77,640 KB
testcase_16 AC 123 ms
77,516 KB
testcase_17 AC 124 ms
77,880 KB
testcase_18 AC 128 ms
77,608 KB
testcase_19 AC 126 ms
77,644 KB
testcase_20 AC 129 ms
77,652 KB
testcase_21 WA -
testcase_22 AC 200 ms
77,496 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 217 ms
77,568 KB
testcase_29 AC 197 ms
77,340 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 196 ms
77,608 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 74 ms
71,492 KB
testcase_43 WA -
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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