結果

問題 No.1700 floor X
ユーザー GatanityHouseGatanityHouse
提出日時 2021-10-17 01:23:16
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 990 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 12,204 ms
コンパイル使用メモリ 410,436 KB
実行使用メモリ 62,116 KB
最終ジャッジ日時 2023-09-16 09:32:31
合計ジャッジ時間 56,164 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 282 ms
50,360 KB
testcase_01 AC 857 ms
61,420 KB
testcase_02 AC 885 ms
60,920 KB
testcase_03 AC 829 ms
60,512 KB
testcase_04 AC 869 ms
60,352 KB
testcase_05 AC 912 ms
61,500 KB
testcase_06 AC 891 ms
61,364 KB
testcase_07 AC 845 ms
60,328 KB
testcase_08 AC 862 ms
61,228 KB
testcase_09 AC 859 ms
61,356 KB
testcase_10 AC 838 ms
60,340 KB
testcase_11 AC 860 ms
61,372 KB
testcase_12 AC 864 ms
61,284 KB
testcase_13 AC 879 ms
61,376 KB
testcase_14 AC 890 ms
62,012 KB
testcase_15 AC 873 ms
61,404 KB
testcase_16 AC 883 ms
61,208 KB
testcase_17 AC 885 ms
61,156 KB
testcase_18 AC 867 ms
61,528 KB
testcase_19 AC 906 ms
61,412 KB
testcase_20 AC 891 ms
61,168 KB
testcase_21 AC 956 ms
60,924 KB
testcase_22 AC 989 ms
61,788 KB
testcase_23 AC 966 ms
61,420 KB
testcase_24 AC 950 ms
60,912 KB
testcase_25 AC 934 ms
60,844 KB
testcase_26 AC 946 ms
61,884 KB
testcase_27 AC 960 ms
61,816 KB
testcase_28 AC 946 ms
61,116 KB
testcase_29 AC 945 ms
61,780 KB
testcase_30 AC 988 ms
61,260 KB
testcase_31 AC 943 ms
61,144 KB
testcase_32 AC 974 ms
61,812 KB
testcase_33 AC 933 ms
60,944 KB
testcase_34 AC 947 ms
61,168 KB
testcase_35 AC 972 ms
61,240 KB
testcase_36 AC 942 ms
62,108 KB
testcase_37 AC 969 ms
60,844 KB
testcase_38 AC 986 ms
62,116 KB
testcase_39 AC 941 ms
61,080 KB
testcase_40 AC 985 ms
61,620 KB
testcase_41 AC 590 ms
59,212 KB
testcase_42 AC 275 ms
50,528 KB
testcase_43 AC 990 ms
61,620 KB
testcase_44 AC 980 ms
61,356 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:8:13: warning: name shadowed: t
        val t = readLine()!!.toBigDecimal()
            ^

ソースコード

diff #

import java.math.MathContext
import java.math.RoundingMode

fun main() {
    val t = readLine()!!.toInt()

    repeat(t) {
        val t = readLine()!!.toBigDecimal()
        val sqrt = t.sqrt(MathContext.DECIMAL128)
        val result = sqrt.setScale(0, RoundingMode.FLOOR).toBigInteger()
        println(result)
    }
}
0