結果

問題 No.1700 floor X
ユーザー chineristACchineristAC
提出日時 2021-10-08 21:53:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 81,516 KB
最終ジャッジ日時 2023-09-16 08:58:24
合計ジャッジ時間 8,375 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
74,384 KB
testcase_01 AC 125 ms
79,724 KB
testcase_02 AC 127 ms
80,016 KB
testcase_03 AC 126 ms
79,760 KB
testcase_04 AC 128 ms
79,960 KB
testcase_05 AC 129 ms
79,864 KB
testcase_06 AC 126 ms
79,940 KB
testcase_07 AC 123 ms
79,512 KB
testcase_08 AC 127 ms
80,048 KB
testcase_09 AC 126 ms
79,988 KB
testcase_10 AC 127 ms
79,556 KB
testcase_11 AC 127 ms
79,548 KB
testcase_12 AC 125 ms
80,044 KB
testcase_13 AC 128 ms
79,784 KB
testcase_14 AC 130 ms
80,164 KB
testcase_15 AC 123 ms
80,044 KB
testcase_16 AC 125 ms
79,788 KB
testcase_17 AC 125 ms
79,668 KB
testcase_18 AC 125 ms
79,724 KB
testcase_19 AC 124 ms
79,664 KB
testcase_20 AC 123 ms
79,932 KB
testcase_21 AC 139 ms
81,164 KB
testcase_22 AC 140 ms
80,988 KB
testcase_23 AC 142 ms
81,028 KB
testcase_24 AC 142 ms
81,372 KB
testcase_25 AC 143 ms
81,268 KB
testcase_26 AC 141 ms
81,268 KB
testcase_27 AC 145 ms
80,924 KB
testcase_28 AC 144 ms
81,436 KB
testcase_29 AC 144 ms
81,392 KB
testcase_30 AC 145 ms
81,060 KB
testcase_31 AC 143 ms
81,484 KB
testcase_32 AC 145 ms
81,188 KB
testcase_33 AC 145 ms
81,204 KB
testcase_34 AC 140 ms
81,444 KB
testcase_35 AC 139 ms
81,276 KB
testcase_36 AC 141 ms
80,972 KB
testcase_37 AC 141 ms
80,880 KB
testcase_38 AC 146 ms
80,996 KB
testcase_39 AC 150 ms
81,088 KB
testcase_40 AC 142 ms
81,336 KB
testcase_41 AC 142 ms
81,144 KB
testcase_42 AC 114 ms
74,612 KB
testcase_43 AC 144 ms
81,516 KB
testcase_44 AC 143 ms
81,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random
from collections import deque
from heapq import heappush,heappop

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

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

    ok = 0
    ng = N+1
    while ng-ok>1:
        mid = (ok+ng)//2
        if mid*mid <= N:
            ok = mid
        else:
            ng = mid
    
    print(ok)
0