結果

問題 No.1700 floor X
ユーザー DrDrpilotDrDrpilot
提出日時 2022-02-25 14:00:22
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 373 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 87,336 KB
実行使用メモリ 78,096 KB
最終ジャッジ日時 2023-09-16 09:42:51
合計ジャッジ時間 14,521 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,852 KB
testcase_01 AC 130 ms
77,928 KB
testcase_02 AC 122 ms
77,592 KB
testcase_03 AC 121 ms
78,096 KB
testcase_04 AC 122 ms
77,712 KB
testcase_05 AC 126 ms
77,872 KB
testcase_06 AC 123 ms
77,940 KB
testcase_07 AC 123 ms
77,752 KB
testcase_08 AC 121 ms
78,060 KB
testcase_09 AC 118 ms
77,896 KB
testcase_10 AC 121 ms
77,580 KB
testcase_11 AC 120 ms
77,944 KB
testcase_12 AC 127 ms
77,900 KB
testcase_13 AC 124 ms
77,764 KB
testcase_14 AC 122 ms
77,992 KB
testcase_15 AC 123 ms
77,592 KB
testcase_16 AC 120 ms
78,084 KB
testcase_17 AC 124 ms
77,708 KB
testcase_18 AC 123 ms
77,968 KB
testcase_19 AC 122 ms
77,928 KB
testcase_20 AC 122 ms
77,752 KB
testcase_21 AC 422 ms
77,608 KB
testcase_22 AC 422 ms
77,684 KB
testcase_23 AC 414 ms
77,424 KB
testcase_24 AC 416 ms
77,324 KB
testcase_25 AC 421 ms
77,652 KB
testcase_26 AC 425 ms
77,572 KB
testcase_27 AC 410 ms
77,524 KB
testcase_28 AC 418 ms
77,688 KB
testcase_29 AC 419 ms
77,648 KB
testcase_30 AC 417 ms
77,692 KB
testcase_31 AC 421 ms
77,588 KB
testcase_32 AC 415 ms
77,516 KB
testcase_33 AC 418 ms
77,652 KB
testcase_34 AC 419 ms
77,336 KB
testcase_35 AC 417 ms
77,524 KB
testcase_36 AC 413 ms
77,328 KB
testcase_37 AC 412 ms
77,700 KB
testcase_38 AC 417 ms
77,768 KB
testcase_39 AC 420 ms
77,752 KB
testcase_40 AC 416 ms
77,520 KB
testcase_41 AC 120 ms
77,520 KB
testcase_42 AC 69 ms
71,340 KB
testcase_43 AC 434 ms
77,628 KB
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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