結果

問題 No.1700 floor X
ユーザー gr1msl3ygr1msl3y
提出日時 2021-10-08 21:52:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 77,660 KB
最終ジャッジ日時 2023-09-16 08:57:54
合計ジャッジ時間 6,939 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,292 KB
testcase_01 AC 109 ms
77,168 KB
testcase_02 AC 107 ms
77,452 KB
testcase_03 AC 107 ms
77,420 KB
testcase_04 AC 112 ms
77,248 KB
testcase_05 AC 107 ms
77,496 KB
testcase_06 AC 106 ms
77,660 KB
testcase_07 AC 107 ms
77,252 KB
testcase_08 AC 109 ms
77,448 KB
testcase_09 AC 110 ms
77,380 KB
testcase_10 AC 110 ms
77,500 KB
testcase_11 AC 109 ms
77,332 KB
testcase_12 AC 108 ms
77,500 KB
testcase_13 AC 107 ms
77,508 KB
testcase_14 AC 110 ms
77,468 KB
testcase_15 AC 110 ms
77,416 KB
testcase_16 AC 108 ms
77,548 KB
testcase_17 AC 110 ms
77,352 KB
testcase_18 AC 108 ms
77,348 KB
testcase_19 AC 108 ms
77,428 KB
testcase_20 AC 108 ms
77,432 KB
testcase_21 AC 112 ms
77,348 KB
testcase_22 AC 111 ms
77,348 KB
testcase_23 AC 113 ms
77,376 KB
testcase_24 AC 111 ms
77,500 KB
testcase_25 AC 112 ms
77,544 KB
testcase_26 AC 112 ms
77,452 KB
testcase_27 AC 111 ms
77,348 KB
testcase_28 AC 112 ms
77,508 KB
testcase_29 AC 112 ms
77,240 KB
testcase_30 AC 113 ms
77,572 KB
testcase_31 AC 112 ms
77,520 KB
testcase_32 AC 111 ms
77,616 KB
testcase_33 AC 115 ms
77,388 KB
testcase_34 AC 112 ms
77,532 KB
testcase_35 AC 113 ms
77,372 KB
testcase_36 AC 112 ms
77,568 KB
testcase_37 AC 113 ms
77,592 KB
testcase_38 AC 113 ms
77,436 KB
testcase_39 AC 115 ms
77,444 KB
testcase_40 AC 111 ms
77,268 KB
testcase_41 AC 107 ms
77,580 KB
testcase_42 AC 69 ms
71,396 KB
testcase_43 AC 109 ms
77,228 KB
testcase_44 AC 110 ms
77,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(n):
    l = 0
    r = 10**9+1
    while r-l > 1:
        m = (l+r)//2
        if m**2 <= n:
            l = m
        else:
            r = m
    return l


T = int(input())
ans = []
for _ in range(T):
    N = int(input())
    ans.append(solve(N))

print(*ans, sep='\n')
0