結果

問題 No.1700 floor X
ユーザー 👑 箱星箱星
提出日時 2021-10-08 22:38:24
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 912 bytes
コンパイル時間 15,258 ms
コンパイル使用メモリ 422,688 KB
実行使用メモリ 55,480 KB
最終ジャッジ日時 2023-09-30 11:37:15
合計ジャッジ時間 32,814 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 274 ms
54,540 KB
testcase_01 AC 410 ms
53,280 KB
testcase_02 AC 395 ms
55,320 KB
testcase_03 AC 396 ms
53,552 KB
testcase_04 AC 408 ms
55,196 KB
testcase_05 AC 419 ms
53,164 KB
testcase_06 AC 413 ms
53,136 KB
testcase_07 AC 407 ms
53,136 KB
testcase_08 AC 406 ms
55,024 KB
testcase_09 AC 401 ms
53,672 KB
testcase_10 AC 412 ms
53,080 KB
testcase_11 AC 419 ms
55,236 KB
testcase_12 AC 411 ms
55,152 KB
testcase_13 AC 400 ms
55,104 KB
testcase_14 AC 417 ms
53,480 KB
testcase_15 AC 412 ms
53,008 KB
testcase_16 AC 416 ms
55,480 KB
testcase_17 AC 417 ms
53,140 KB
testcase_18 AC 404 ms
53,064 KB
testcase_19 AC 410 ms
53,416 KB
testcase_20 AC 413 ms
55,068 KB
testcase_21 AC 409 ms
53,316 KB
testcase_22 AC 409 ms
55,480 KB
testcase_23 AC 403 ms
55,144 KB
testcase_24 AC 407 ms
55,016 KB
testcase_25 AC 404 ms
53,256 KB
testcase_26 AC 409 ms
53,120 KB
testcase_27 AC 414 ms
55,100 KB
testcase_28 AC 408 ms
53,212 KB
testcase_29 AC 405 ms
53,204 KB
testcase_30 AC 408 ms
53,076 KB
testcase_31 AC 417 ms
55,076 KB
testcase_32 AC 410 ms
53,420 KB
testcase_33 AC 408 ms
53,544 KB
testcase_34 AC 405 ms
53,212 KB
testcase_35 AC 407 ms
55,184 KB
testcase_36 AC 416 ms
55,132 KB
testcase_37 AC 407 ms
53,140 KB
testcase_38 AC 407 ms
53,464 KB
testcase_39 AC 410 ms
55,032 KB
testcase_40 AC 409 ms
55,464 KB
testcase_41 AC 412 ms
55,428 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintWriter
import java.util.*
import kotlin.math.*

fun PrintWriter.solve() {
    val numCases = nextInt()
    case@ for (_i in 0 until numCases) {
        val n = nextLong()
        println(sqrt(n.toDouble()).toLong())
    }
}

fun main() {
    Thread(null, {
        val writer = PrintWriter(System.out, false)
        writer.solve()
        writer.flush()
    }, "solve", 1.shl(26))
        .apply { setUncaughtExceptionHandler { _, e -> e.printStackTrace(); kotlin.system.exitProcess(1) } }
        .apply { start() }.join()
}

// region Scanner
private var st = StringTokenizer("")
private val br = System.`in`.bufferedReader()

fun next(): String {
    while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine())
    return st.nextToken()
}

fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun nextLine() = br.readLine()
fun nextDouble() = next().toDouble()
// endregion
0