結果

問題 No.1700 floor X
ユーザー 👑 tamatotamato
提出日時 2021-10-08 21:52:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 471 bytes
コンパイル時間 1,037 ms
コンパイル使用メモリ 87,620 KB
実行使用メモリ 78,024 KB
最終ジャッジ日時 2023-09-16 08:57:32
合計ジャッジ時間 6,748 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,884 KB
testcase_01 AC 100 ms
77,648 KB
testcase_02 AC 96 ms
77,720 KB
testcase_03 AC 97 ms
77,604 KB
testcase_04 AC 97 ms
77,768 KB
testcase_05 AC 95 ms
77,936 KB
testcase_06 AC 96 ms
77,568 KB
testcase_07 AC 95 ms
77,772 KB
testcase_08 AC 97 ms
77,864 KB
testcase_09 AC 93 ms
77,656 KB
testcase_10 AC 96 ms
77,604 KB
testcase_11 AC 93 ms
77,748 KB
testcase_12 AC 96 ms
77,732 KB
testcase_13 AC 95 ms
77,492 KB
testcase_14 AC 94 ms
77,464 KB
testcase_15 AC 97 ms
77,760 KB
testcase_16 AC 95 ms
77,872 KB
testcase_17 AC 93 ms
77,856 KB
testcase_18 AC 94 ms
77,764 KB
testcase_19 AC 92 ms
77,768 KB
testcase_20 AC 92 ms
78,024 KB
testcase_21 AC 101 ms
77,700 KB
testcase_22 AC 103 ms
77,848 KB
testcase_23 AC 99 ms
77,796 KB
testcase_24 AC 102 ms
77,736 KB
testcase_25 AC 103 ms
77,488 KB
testcase_26 AC 105 ms
77,632 KB
testcase_27 AC 101 ms
77,756 KB
testcase_28 AC 102 ms
77,600 KB
testcase_29 AC 103 ms
77,656 KB
testcase_30 AC 104 ms
77,832 KB
testcase_31 AC 102 ms
77,844 KB
testcase_32 AC 103 ms
77,880 KB
testcase_33 AC 104 ms
77,704 KB
testcase_34 AC 104 ms
77,600 KB
testcase_35 AC 101 ms
77,696 KB
testcase_36 AC 100 ms
77,592 KB
testcase_37 AC 102 ms
77,880 KB
testcase_38 AC 103 ms
77,668 KB
testcase_39 AC 106 ms
77,784 KB
testcase_40 AC 104 ms
77,716 KB
testcase_41 AC 95 ms
77,520 KB
testcase_42 AC 73 ms
71,436 KB
testcase_43 AC 98 ms
77,504 KB
testcase_44 AC 98 ms
77,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.buffer.readline

    def sqrt(n):
        ok = 1
        ng = 10**9+1
        mid = (ok+ng) // 2
        while ng - ok > 1:
            if mid*mid > n:
                ng = mid
            else:
                ok = mid
            mid = (ok+ng)//2
        return ok

    for _ in range(int(input())):
        N = int(input())
        print(sqrt(N))


if __name__ == '__main__':
    main()
0