結果

問題 No.1700 floor X
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-10-08 21:55:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 759 ms
コンパイル使用メモリ 86,556 KB
実行使用メモリ 77,428 KB
最終ジャッジ日時 2023-09-16 09:05:00
合計ジャッジ時間 7,959 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,172 KB
testcase_01 AC 129 ms
77,260 KB
testcase_02 AC 123 ms
77,348 KB
testcase_03 AC 125 ms
77,348 KB
testcase_04 AC 123 ms
77,144 KB
testcase_05 AC 126 ms
77,408 KB
testcase_06 AC 124 ms
77,276 KB
testcase_07 AC 123 ms
77,144 KB
testcase_08 AC 125 ms
77,252 KB
testcase_09 AC 123 ms
77,132 KB
testcase_10 AC 123 ms
77,304 KB
testcase_11 AC 123 ms
77,284 KB
testcase_12 AC 123 ms
77,220 KB
testcase_13 AC 120 ms
77,276 KB
testcase_14 AC 122 ms
77,244 KB
testcase_15 AC 121 ms
77,236 KB
testcase_16 AC 121 ms
77,132 KB
testcase_17 AC 121 ms
76,952 KB
testcase_18 AC 121 ms
77,280 KB
testcase_19 AC 123 ms
77,236 KB
testcase_20 AC 122 ms
76,988 KB
testcase_21 AC 125 ms
77,428 KB
testcase_22 AC 125 ms
77,312 KB
testcase_23 AC 123 ms
77,264 KB
testcase_24 AC 124 ms
77,412 KB
testcase_25 AC 127 ms
77,372 KB
testcase_26 AC 127 ms
76,984 KB
testcase_27 AC 125 ms
77,352 KB
testcase_28 AC 126 ms
77,388 KB
testcase_29 AC 126 ms
77,376 KB
testcase_30 AC 125 ms
77,268 KB
testcase_31 AC 124 ms
76,956 KB
testcase_32 AC 125 ms
76,964 KB
testcase_33 AC 125 ms
77,356 KB
testcase_34 AC 126 ms
77,400 KB
testcase_35 AC 126 ms
77,144 KB
testcase_36 AC 125 ms
77,224 KB
testcase_37 AC 125 ms
77,248 KB
testcase_38 AC 126 ms
76,920 KB
testcase_39 AC 125 ms
77,276 KB
testcase_40 AC 125 ms
77,236 KB
testcase_41 AC 126 ms
77,352 KB
testcase_42 AC 70 ms
71,276 KB
testcase_43 AC 127 ms
77,236 KB
testcase_44 AC 131 ms
77,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    n = int(input())
    l = 0
    r = 10**10
    while r > l+1:
        m = (r+l)//2
        if m**2 > n:
            r = m
        else:
            l = m
    print(l)
0