結果

問題 No.1642 Registration
ユーザー 👑 箱
提出日時 2021-08-13 21:24:55
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 341 ms / 2,000 ms
コード長 682 bytes
コンパイル時間 11,973 ms
コンパイル使用メモリ 434,768 KB
実行使用メモリ 59,408 KB
最終ジャッジ日時 2024-04-14 16:37:06
合計ジャッジ時間 16,038 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 339 ms
59,352 KB
testcase_01 AC 340 ms
59,308 KB
testcase_02 AC 339 ms
59,372 KB
testcase_03 AC 339 ms
59,156 KB
testcase_04 AC 335 ms
59,260 KB
testcase_05 AC 340 ms
59,272 KB
testcase_06 AC 337 ms
59,216 KB
testcase_07 AC 338 ms
59,384 KB
testcase_08 AC 341 ms
59,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

fun PrintWriter.solve() {
    val n = nextInt()
    println("%03d".format(n))
}

fun main() {
    Thread(null, {
        val writer = PrintWriter(System.out, false)
        writer.solve()
        writer.flush()
    }, "solve", 1.shl(26)).start()
}

// 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