結果

問題 No.1700 floor X
ユーザー tassei903tassei903
提出日時 2021-10-08 22:06:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 601 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 77,648 KB
最終ジャッジ日時 2023-09-16 09:10:51
合計ジャッジ時間 6,662 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,052 KB
testcase_01 AC 101 ms
77,468 KB
testcase_02 AC 105 ms
77,204 KB
testcase_03 AC 101 ms
77,472 KB
testcase_04 AC 99 ms
77,440 KB
testcase_05 AC 100 ms
77,648 KB
testcase_06 AC 101 ms
77,604 KB
testcase_07 AC 100 ms
77,320 KB
testcase_08 AC 102 ms
77,476 KB
testcase_09 AC 100 ms
77,324 KB
testcase_10 AC 101 ms
77,328 KB
testcase_11 AC 97 ms
77,256 KB
testcase_12 AC 99 ms
77,584 KB
testcase_13 AC 99 ms
77,416 KB
testcase_14 AC 99 ms
77,144 KB
testcase_15 AC 100 ms
77,396 KB
testcase_16 AC 100 ms
77,408 KB
testcase_17 AC 101 ms
77,140 KB
testcase_18 AC 100 ms
77,544 KB
testcase_19 AC 101 ms
77,172 KB
testcase_20 AC 98 ms
77,448 KB
testcase_21 AC 103 ms
77,316 KB
testcase_22 AC 103 ms
77,520 KB
testcase_23 AC 105 ms
77,484 KB
testcase_24 AC 103 ms
77,296 KB
testcase_25 AC 104 ms
77,276 KB
testcase_26 AC 102 ms
77,436 KB
testcase_27 AC 102 ms
77,392 KB
testcase_28 AC 103 ms
77,292 KB
testcase_29 AC 104 ms
77,380 KB
testcase_30 AC 104 ms
77,376 KB
testcase_31 AC 104 ms
77,228 KB
testcase_32 AC 105 ms
77,384 KB
testcase_33 AC 105 ms
77,416 KB
testcase_34 AC 105 ms
77,392 KB
testcase_35 AC 104 ms
77,344 KB
testcase_36 AC 104 ms
77,312 KB
testcase_37 AC 103 ms
77,604 KB
testcase_38 AC 104 ms
77,248 KB
testcase_39 AC 104 ms
77,348 KB
testcase_40 AC 105 ms
77,476 KB
testcase_41 AC 102 ms
77,260 KB
testcase_42 AC 72 ms
71,252 KB
testcase_43 AC 101 ms
77,432 KB
testcase_44 AC 102 ms
77,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
sys.setrecursionlimit(10**7)
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################

def sqrt(x):
    ok = 0
    ng = 10**12
    while ng-ok>1:
        d = (ok+ng)//2
        if d*d<=x:
            ok = d
        else:
            ng = d
    return ok

t = ni()
for i in range(t):
    print(sqrt(ni()))
0