結果

問題 No.1700 floor X
ユーザー kohei2019kohei2019
提出日時 2023-06-04 16:54:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 153 ms / 2,000 ms
コード長 352 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 78,632 KB
最終ジャッジ日時 2023-08-28 08:17:21
合計ジャッジ時間 8,514 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,320 KB
testcase_01 AC 140 ms
78,300 KB
testcase_02 AC 141 ms
78,552 KB
testcase_03 AC 142 ms
78,252 KB
testcase_04 AC 141 ms
78,128 KB
testcase_05 AC 137 ms
78,252 KB
testcase_06 AC 140 ms
78,480 KB
testcase_07 AC 140 ms
78,572 KB
testcase_08 AC 137 ms
78,244 KB
testcase_09 AC 138 ms
78,408 KB
testcase_10 AC 141 ms
78,472 KB
testcase_11 AC 141 ms
78,308 KB
testcase_12 AC 141 ms
78,524 KB
testcase_13 AC 139 ms
78,560 KB
testcase_14 AC 140 ms
78,396 KB
testcase_15 AC 140 ms
78,356 KB
testcase_16 AC 139 ms
78,324 KB
testcase_17 AC 139 ms
78,432 KB
testcase_18 AC 141 ms
78,052 KB
testcase_19 AC 137 ms
78,416 KB
testcase_20 AC 139 ms
78,632 KB
testcase_21 AC 152 ms
78,516 KB
testcase_22 AC 145 ms
78,480 KB
testcase_23 AC 147 ms
78,300 KB
testcase_24 AC 145 ms
78,376 KB
testcase_25 AC 147 ms
78,512 KB
testcase_26 AC 148 ms
78,112 KB
testcase_27 AC 150 ms
78,280 KB
testcase_28 AC 148 ms
78,544 KB
testcase_29 AC 150 ms
78,256 KB
testcase_30 AC 148 ms
78,488 KB
testcase_31 AC 153 ms
78,236 KB
testcase_32 AC 149 ms
78,332 KB
testcase_33 AC 153 ms
78,448 KB
testcase_34 AC 151 ms
78,528 KB
testcase_35 AC 152 ms
78,532 KB
testcase_36 AC 150 ms
78,572 KB
testcase_37 AC 148 ms
78,260 KB
testcase_38 AC 150 ms
78,604 KB
testcase_39 AC 147 ms
78,588 KB
testcase_40 AC 150 ms
78,488 KB
testcase_41 AC 140 ms
78,016 KB
testcase_42 AC 75 ms
71,404 KB
testcase_43 AC 142 ms
78,412 KB
testcase_44 AC 146 ms
78,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for i in range(T):
    N = int(input())
    def is_ok(arg):
        return N >= arg**2

    def meguru_bisect(ng, ok):
        while (abs(ok - ng) > 1):
            mid = (ok + ng) // 2
            if is_ok(mid):
                ok = mid
            else:
                ng = mid
        return ok
    print(meguru_bisect(10**9+1,0))
0