結果

問題 No.1700 floor X
ユーザー Kiri8128Kiri8128
提出日時 2021-10-08 21:51:34
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 868 ms
コンパイル使用メモリ 86,624 KB
実行使用メモリ 78,800 KB
最終ジャッジ日時 2023-09-16 08:54:21
合計ジャッジ時間 7,822 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,308 KB
testcase_01 AC 131 ms
78,424 KB
testcase_02 AC 129 ms
78,408 KB
testcase_03 AC 129 ms
78,496 KB
testcase_04 AC 129 ms
78,800 KB
testcase_05 AC 130 ms
78,564 KB
testcase_06 AC 127 ms
78,620 KB
testcase_07 AC 128 ms
78,672 KB
testcase_08 AC 128 ms
78,576 KB
testcase_09 AC 130 ms
78,648 KB
testcase_10 AC 130 ms
78,800 KB
testcase_11 AC 129 ms
78,432 KB
testcase_12 AC 129 ms
78,488 KB
testcase_13 AC 128 ms
78,496 KB
testcase_14 AC 129 ms
78,776 KB
testcase_15 AC 130 ms
78,404 KB
testcase_16 AC 132 ms
78,592 KB
testcase_17 AC 134 ms
78,552 KB
testcase_18 AC 130 ms
78,580 KB
testcase_19 AC 128 ms
78,528 KB
testcase_20 AC 130 ms
78,540 KB
testcase_21 AC 129 ms
78,668 KB
testcase_22 AC 131 ms
78,680 KB
testcase_23 AC 132 ms
78,220 KB
testcase_24 AC 132 ms
78,572 KB
testcase_25 AC 131 ms
78,460 KB
testcase_26 AC 130 ms
78,568 KB
testcase_27 AC 130 ms
78,688 KB
testcase_28 AC 129 ms
78,416 KB
testcase_29 AC 131 ms
78,684 KB
testcase_30 AC 131 ms
78,544 KB
testcase_31 AC 130 ms
78,456 KB
testcase_32 AC 131 ms
78,580 KB
testcase_33 AC 130 ms
78,416 KB
testcase_34 AC 132 ms
78,236 KB
testcase_35 AC 129 ms
78,484 KB
testcase_36 AC 130 ms
78,456 KB
testcase_37 AC 130 ms
78,416 KB
testcase_38 AC 129 ms
78,432 KB
testcase_39 AC 129 ms
78,480 KB
testcase_40 AC 129 ms
78,316 KB
testcase_41 AC 129 ms
78,604 KB
testcase_42 AC 69 ms
71,056 KB
testcase_43 AC 130 ms
78,364 KB
testcase_44 AC 129 ms
78,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def sqrt(n):
    if n == 0: return 0
    x = 1 << (n.bit_length() + 1) // 2
    y = (x + n // x) // 2
    while y < x:
        x = y
        y = (x + n // x) // 2
    return x

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