結果

問題 No.1700 floor X
コンテスト
ユーザー GatanityHouse
提出日時 2021-10-17 01:23:16
言語 Kotlin
(2.3.20)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
AC  
実行時間 445 ms / 2,000 ms
+ 500µs
コード長 322 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 9,645 ms
コンパイル使用メモリ 469,560 KB
実行使用メモリ 87,240 KB
最終ジャッジ日時 2026-08-04 20:48:13
合計ジャッジ時間 30,726 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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