結果

問題 No.1700 floor X
ユーザー SidewaysOwlSidewaysOwl
提出日時 2021-10-08 21:59:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 485 ms
コンパイル使用メモリ 87,220 KB
実行使用メモリ 78,024 KB
最終ジャッジ日時 2023-09-16 09:08:07
合計ジャッジ時間 7,797 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,436 KB
testcase_01 AC 125 ms
77,860 KB
testcase_02 AC 127 ms
77,704 KB
testcase_03 AC 126 ms
77,920 KB
testcase_04 AC 125 ms
78,024 KB
testcase_05 AC 124 ms
77,712 KB
testcase_06 AC 125 ms
77,900 KB
testcase_07 AC 126 ms
77,756 KB
testcase_08 AC 129 ms
77,772 KB
testcase_09 AC 125 ms
77,764 KB
testcase_10 AC 125 ms
77,688 KB
testcase_11 AC 125 ms
77,936 KB
testcase_12 AC 127 ms
77,864 KB
testcase_13 AC 125 ms
77,848 KB
testcase_14 AC 126 ms
77,620 KB
testcase_15 AC 128 ms
78,024 KB
testcase_16 AC 127 ms
77,768 KB
testcase_17 AC 127 ms
77,852 KB
testcase_18 AC 125 ms
77,688 KB
testcase_19 AC 127 ms
77,784 KB
testcase_20 AC 129 ms
77,904 KB
testcase_21 AC 129 ms
77,764 KB
testcase_22 AC 127 ms
77,588 KB
testcase_23 AC 129 ms
77,868 KB
testcase_24 AC 127 ms
77,848 KB
testcase_25 AC 127 ms
77,856 KB
testcase_26 AC 127 ms
77,768 KB
testcase_27 AC 126 ms
77,620 KB
testcase_28 AC 127 ms
77,756 KB
testcase_29 AC 128 ms
77,936 KB
testcase_30 AC 130 ms
77,592 KB
testcase_31 AC 128 ms
77,768 KB
testcase_32 AC 131 ms
77,808 KB
testcase_33 AC 135 ms
77,732 KB
testcase_34 AC 125 ms
77,936 KB
testcase_35 AC 130 ms
77,592 KB
testcase_36 AC 127 ms
77,772 KB
testcase_37 AC 128 ms
77,936 KB
testcase_38 AC 130 ms
77,852 KB
testcase_39 AC 129 ms
77,904 KB
testcase_40 AC 127 ms
77,848 KB
testcase_41 AC 128 ms
77,720 KB
testcase_42 AC 71 ms
71,732 KB
testcase_43 AC 127 ms
77,868 KB
testcase_44 AC 132 ms
77,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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