結果

問題 No.1700 floor X
ユーザー U SU S
提出日時 2021-10-08 22:05:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 172 ms / 2,000 ms
コード長 671 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 81,628 KB
最終ジャッジ日時 2023-09-16 09:10:01
合計ジャッジ時間 9,518 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
74,068 KB
testcase_01 AC 164 ms
81,184 KB
testcase_02 AC 167 ms
81,400 KB
testcase_03 AC 165 ms
81,136 KB
testcase_04 AC 163 ms
81,360 KB
testcase_05 AC 165 ms
81,328 KB
testcase_06 AC 166 ms
81,328 KB
testcase_07 AC 167 ms
81,504 KB
testcase_08 AC 166 ms
81,368 KB
testcase_09 AC 163 ms
81,572 KB
testcase_10 AC 164 ms
81,132 KB
testcase_11 AC 167 ms
81,376 KB
testcase_12 AC 166 ms
81,196 KB
testcase_13 AC 163 ms
81,196 KB
testcase_14 AC 164 ms
81,372 KB
testcase_15 AC 166 ms
81,200 KB
testcase_16 AC 164 ms
81,512 KB
testcase_17 AC 167 ms
81,040 KB
testcase_18 AC 166 ms
81,136 KB
testcase_19 AC 164 ms
81,424 KB
testcase_20 AC 167 ms
81,488 KB
testcase_21 AC 165 ms
81,192 KB
testcase_22 AC 167 ms
81,328 KB
testcase_23 AC 167 ms
81,376 KB
testcase_24 AC 169 ms
81,368 KB
testcase_25 AC 167 ms
81,196 KB
testcase_26 AC 171 ms
81,428 KB
testcase_27 AC 168 ms
81,136 KB
testcase_28 AC 164 ms
81,420 KB
testcase_29 AC 167 ms
81,452 KB
testcase_30 AC 166 ms
81,328 KB
testcase_31 AC 165 ms
81,560 KB
testcase_32 AC 167 ms
81,164 KB
testcase_33 AC 167 ms
81,364 KB
testcase_34 AC 168 ms
81,424 KB
testcase_35 AC 166 ms
81,484 KB
testcase_36 AC 167 ms
81,048 KB
testcase_37 AC 167 ms
81,136 KB
testcase_38 AC 166 ms
81,576 KB
testcase_39 AC 167 ms
81,452 KB
testcase_40 AC 168 ms
81,628 KB
testcase_41 AC 169 ms
81,448 KB
testcase_42 AC 117 ms
74,296 KB
testcase_43 AC 168 ms
81,368 KB
testcase_44 AC 172 ms
81,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#import sys
# input = sys.stdin.readline
def mp():return map(int,input().split())
def lmp():return list(map(int,input().split()))
def mps(A):return [tuple(map(int, input().split())) for _ in range(A)]
import math
import bisect
import heapq
from copy import deepcopy as dc
from itertools import accumulate
from collections import Counter, defaultdict, deque
def ceil(U,V):return (U+V-1)//V
def modf1(N,MOD):return (N-1)%MOD+1
inf = int(1e20)
mod = 998244353

t = int(input())
for _ in range(t):
    n = int(input())
    sn = int(n**0.5)
    snm = sn-1
    snp = sn+1
    s = [sn,snp]
    ans = snm
    for i in s:
        if i**2 <= n:
            ans = i
    print(ans)

0