結果

問題 No.1700 floor X
ユーザー SidewaysOwlSidewaysOwl
提出日時 2021-10-08 21:54:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 1,064 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 78,020 KB
最終ジャッジ日時 2023-09-30 09:56:18
合計ジャッジ時間 8,872 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,416 KB
testcase_01 AC 145 ms
77,280 KB
testcase_02 AC 136 ms
77,888 KB
testcase_03 AC 136 ms
77,480 KB
testcase_04 AC 135 ms
77,528 KB
testcase_05 AC 136 ms
77,552 KB
testcase_06 AC 135 ms
77,512 KB
testcase_07 AC 134 ms
77,916 KB
testcase_08 AC 136 ms
77,872 KB
testcase_09 AC 134 ms
77,532 KB
testcase_10 AC 135 ms
77,500 KB
testcase_11 AC 135 ms
77,552 KB
testcase_12 AC 134 ms
77,676 KB
testcase_13 AC 132 ms
77,296 KB
testcase_14 AC 133 ms
77,500 KB
testcase_15 AC 134 ms
77,640 KB
testcase_16 AC 135 ms
77,296 KB
testcase_17 AC 134 ms
77,532 KB
testcase_18 AC 133 ms
77,532 KB
testcase_19 AC 133 ms
77,576 KB
testcase_20 AC 135 ms
77,548 KB
testcase_21 AC 135 ms
77,544 KB
testcase_22 AC 135 ms
77,720 KB
testcase_23 AC 137 ms
77,412 KB
testcase_24 AC 137 ms
77,576 KB
testcase_25 AC 136 ms
77,480 KB
testcase_26 AC 134 ms
77,416 KB
testcase_27 AC 136 ms
77,648 KB
testcase_28 AC 136 ms
77,884 KB
testcase_29 AC 134 ms
77,528 KB
testcase_30 AC 136 ms
77,528 KB
testcase_31 AC 137 ms
77,720 KB
testcase_32 AC 136 ms
77,644 KB
testcase_33 AC 136 ms
77,636 KB
testcase_34 AC 136 ms
77,640 KB
testcase_35 AC 137 ms
77,872 KB
testcase_36 AC 137 ms
77,868 KB
testcase_37 AC 134 ms
77,444 KB
testcase_38 AC 139 ms
77,752 KB
testcase_39 AC 138 ms
77,672 KB
testcase_40 AC 136 ms
77,768 KB
testcase_41 AC 136 ms
77,540 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):
        nn -= 1
    elif (nn+1) ** 2 <= n <= (nn+1):
        nn += 1
    print(nn)
0