結果

問題 No.1700 floor X
ユーザー SidewaysOwlSidewaysOwl
提出日時 2021-10-08 21:55:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 915 ms
コンパイル使用メモリ 86,712 KB
実行使用メモリ 77,588 KB
最終ジャッジ日時 2023-09-30 09:58:00
合計ジャッジ時間 7,585 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,436 KB
testcase_01 AC 141 ms
77,464 KB
testcase_02 AC 108 ms
77,292 KB
testcase_03 AC 112 ms
77,128 KB
testcase_04 AC 110 ms
77,128 KB
testcase_05 AC 110 ms
77,416 KB
testcase_06 AC 129 ms
77,548 KB
testcase_07 AC 117 ms
77,384 KB
testcase_08 AC 122 ms
77,500 KB
testcase_09 AC 113 ms
77,484 KB
testcase_10 AC 116 ms
77,540 KB
testcase_11 AC 113 ms
77,432 KB
testcase_12 AC 113 ms
77,356 KB
testcase_13 AC 109 ms
77,484 KB
testcase_14 AC 113 ms
77,480 KB
testcase_15 AC 112 ms
77,476 KB
testcase_16 AC 111 ms
77,364 KB
testcase_17 AC 117 ms
77,436 KB
testcase_18 AC 117 ms
77,260 KB
testcase_19 AC 114 ms
77,476 KB
testcase_20 AC 114 ms
77,484 KB
testcase_21 AC 117 ms
77,480 KB
testcase_22 AC 116 ms
77,224 KB
testcase_23 AC 114 ms
77,276 KB
testcase_24 AC 121 ms
77,544 KB
testcase_25 AC 123 ms
77,544 KB
testcase_26 AC 115 ms
77,384 KB
testcase_27 AC 113 ms
77,384 KB
testcase_28 AC 115 ms
77,480 KB
testcase_29 AC 113 ms
77,476 KB
testcase_30 AC 111 ms
77,448 KB
testcase_31 AC 111 ms
77,480 KB
testcase_32 AC 111 ms
77,384 KB
testcase_33 AC 118 ms
77,588 KB
testcase_34 AC 112 ms
77,496 KB
testcase_35 AC 109 ms
77,228 KB
testcase_36 AC 115 ms
77,512 KB
testcase_37 AC 112 ms
77,124 KB
testcase_38 AC 112 ms
77,492 KB
testcase_39 AC 116 ms
77,368 KB
testcase_40 AC 114 ms
77,224 KB
testcase_41 AC 114 ms
77,432 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+2):
        nn += 1
    print(nn)
0