結果

問題 No.2087 基数の変換
ユーザー 👑 箱
提出日時 2022-09-30 21:21:50
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 279 ms / 2,000 ms
コード長 841 bytes
コンパイル時間 14,258 ms
コンパイル使用メモリ 414,192 KB
実行使用メモリ 54,696 KB
最終ジャッジ日時 2023-08-24 14:24:06
合計ジャッジ時間 30,096 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 268 ms
54,540 KB
testcase_01 AC 276 ms
52,436 KB
testcase_02 AC 278 ms
52,528 KB
testcase_03 AC 278 ms
54,696 KB
testcase_04 AC 269 ms
52,616 KB
testcase_05 AC 267 ms
54,532 KB
testcase_06 AC 270 ms
54,564 KB
testcase_07 AC 276 ms
52,460 KB
testcase_08 AC 279 ms
52,768 KB
testcase_09 AC 271 ms
52,592 KB
testcase_10 AC 275 ms
54,432 KB
testcase_11 AC 267 ms
54,460 KB
testcase_12 AC 267 ms
54,424 KB
testcase_13 AC 270 ms
52,788 KB
testcase_14 AC 270 ms
52,624 KB
testcase_15 AC 267 ms
54,552 KB
testcase_16 AC 271 ms
54,524 KB
testcase_17 AC 271 ms
52,592 KB
testcase_18 AC 269 ms
54,436 KB
testcase_19 AC 271 ms
52,568 KB
testcase_20 AC 272 ms
54,552 KB
testcase_21 AC 271 ms
54,508 KB
testcase_22 AC 270 ms
52,616 KB
testcase_23 AC 277 ms
52,412 KB
testcase_24 AC 271 ms
52,480 KB
testcase_25 AC 271 ms
52,728 KB
testcase_26 AC 269 ms
52,852 KB
testcase_27 AC 272 ms
54,460 KB
testcase_28 AC 275 ms
54,324 KB
testcase_29 AC 265 ms
52,736 KB
testcase_30 AC 267 ms
54,444 KB
testcase_31 AC 264 ms
54,624 KB
testcase_32 AC 266 ms
54,440 KB
testcase_33 AC 268 ms
54,324 KB
testcase_34 AC 266 ms
52,492 KB
testcase_35 AC 266 ms
52,796 KB
testcase_36 AC 265 ms
52,792 KB
testcase_37 AC 274 ms
52,856 KB
testcase_38 AC 273 ms
52,640 KB
testcase_39 AC 269 ms
54,600 KB
testcase_40 AC 271 ms
54,348 KB
testcase_41 AC 270 ms
54,556 KB
testcase_42 AC 268 ms
54,548 KB
testcase_43 AC 269 ms
54,464 KB
testcase_44 AC 269 ms
52,772 KB
testcase_45 AC 269 ms
54,424 KB
testcase_46 AC 269 ms
52,680 KB
testcase_47 AC 269 ms
52,808 KB
testcase_48 AC 267 ms
52,568 KB
testcase_49 AC 268 ms
54,440 KB
testcase_50 AC 266 ms
52,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

fun PrintWriter.solve() {
    val n = nextInt()
    val m = nextInt()
    println(m.toString(n))
}

fun main() {
    Thread(null, {
        val writer = PrintWriter(System.out, false)
        writer.solve()
        writer.flush()
    }, "solve", abs(1L.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