結果

問題 No.1700 floor X
ユーザー SidewaysOwlSidewaysOwl
提出日時 2021-10-08 21:56:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 86,600 KB
実行使用メモリ 77,652 KB
最終ジャッジ日時 2023-09-30 09:59:05
合計ジャッジ時間 8,217 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,232 KB
testcase_01 AC 137 ms
77,528 KB
testcase_02 AC 132 ms
77,380 KB
testcase_03 AC 132 ms
77,344 KB
testcase_04 AC 138 ms
77,612 KB
testcase_05 AC 132 ms
77,376 KB
testcase_06 AC 133 ms
77,060 KB
testcase_07 AC 133 ms
77,320 KB
testcase_08 AC 134 ms
77,056 KB
testcase_09 AC 131 ms
77,200 KB
testcase_10 AC 133 ms
77,532 KB
testcase_11 AC 132 ms
77,052 KB
testcase_12 AC 133 ms
77,072 KB
testcase_13 AC 132 ms
77,612 KB
testcase_14 AC 132 ms
77,228 KB
testcase_15 AC 131 ms
77,344 KB
testcase_16 AC 134 ms
77,272 KB
testcase_17 AC 132 ms
77,652 KB
testcase_18 AC 135 ms
77,296 KB
testcase_19 AC 136 ms
77,064 KB
testcase_20 AC 132 ms
77,232 KB
testcase_21 AC 132 ms
77,380 KB
testcase_22 AC 135 ms
77,392 KB
testcase_23 AC 134 ms
77,276 KB
testcase_24 AC 135 ms
77,536 KB
testcase_25 AC 133 ms
77,160 KB
testcase_26 AC 133 ms
77,272 KB
testcase_27 AC 134 ms
77,300 KB
testcase_28 AC 135 ms
77,308 KB
testcase_29 AC 135 ms
77,348 KB
testcase_30 AC 139 ms
77,380 KB
testcase_31 AC 133 ms
77,652 KB
testcase_32 AC 132 ms
77,592 KB
testcase_33 AC 134 ms
77,648 KB
testcase_34 AC 134 ms
77,384 KB
testcase_35 AC 134 ms
77,268 KB
testcase_36 AC 133 ms
77,320 KB
testcase_37 AC 134 ms
77,636 KB
testcase_38 AC 133 ms
77,060 KB
testcase_39 AC 133 ms
77,296 KB
testcase_40 AC 136 ms
77,444 KB
testcase_41 AC 136 ms
77,148 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for i in range(t):
    n = int(input())
    nn = int(n ** (1/2))
    if (nn-2) ** 2 <= n <= (nn-1) ** 2:
        nn -= 1
    elif (nn+1) ** 2 <= n <= (nn+2) ** 2:
        nn += 1
    print(nn)
0