結果

問題 No.2186 冪乗の片側極限
ユーザー 👑 箱
提出日時 2023-01-13 21:28:27
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 864 bytes
コンパイル時間 14,120 ms
コンパイル使用メモリ 425,300 KB
実行使用メモリ 54,656 KB
最終ジャッジ日時 2023-08-26 03:00:37
合計ジャッジ時間 27,369 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 260 ms
54,560 KB
testcase_01 AC 238 ms
52,632 KB
testcase_02 AC 233 ms
52,532 KB
testcase_03 AC 237 ms
52,432 KB
testcase_04 AC 234 ms
54,568 KB
testcase_05 AC 241 ms
52,552 KB
testcase_06 AC 242 ms
54,452 KB
testcase_07 AC 240 ms
54,376 KB
testcase_08 AC 242 ms
54,284 KB
testcase_09 AC 236 ms
52,460 KB
testcase_10 WA -
testcase_11 AC 238 ms
52,484 KB
testcase_12 AC 238 ms
52,468 KB
testcase_13 AC 242 ms
54,500 KB
testcase_14 AC 243 ms
52,412 KB
testcase_15 AC 242 ms
54,360 KB
testcase_16 AC 240 ms
54,656 KB
testcase_17 AC 236 ms
52,644 KB
testcase_18 AC 239 ms
54,516 KB
testcase_19 AC 240 ms
52,648 KB
testcase_20 AC 235 ms
54,364 KB
testcase_21 AC 238 ms
52,408 KB
testcase_22 AC 239 ms
54,416 KB
testcase_23 AC 243 ms
54,452 KB
testcase_24 AC 245 ms
52,380 KB
testcase_25 AC 243 ms
54,372 KB
testcase_26 AC 236 ms
52,644 KB
testcase_27 AC 239 ms
54,416 KB
testcase_28 AC 234 ms
52,556 KB
testcase_29 AC 241 ms
54,632 KB
testcase_30 AC 246 ms
54,436 KB
testcase_31 AC 246 ms
52,756 KB
testcase_32 AC 244 ms
52,388 KB
testcase_33 AC 239 ms
52,660 KB
testcase_34 AC 235 ms
52,600 KB
testcase_35 AC 234 ms
54,500 KB
testcase_36 AC 242 ms
54,440 KB
testcase_37 AC 234 ms
54,416 KB
testcase_38 AC 233 ms
52,396 KB
testcase_39 AC 235 ms
54,572 KB
testcase_40 AC 235 ms
52,880 KB
testcase_41 AC 233 ms
54,348 KB
testcase_42 AC 237 ms
54,408 KB
testcase_43 AC 236 ms
54,352 KB
testcase_44 AC 241 ms
52,684 KB
testcase_45 AC 244 ms
52,396 KB
testcase_46 AC 242 ms
52,696 KB
testcase_47 AC 246 ms
52,568 KB
testcase_48 AC 250 ms
52,412 KB
testcase_49 AC 246 ms
54,344 KB
testcase_50 AC 244 ms
54,568 KB
testcase_51 AC 244 ms
52,452 KB
testcase_52 AC 246 ms
54,560 KB
testcase_53 AC 240 ms
52,856 KB
testcase_54 AC 239 ms
54,576 KB
testcase_55 AC 237 ms
54,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

fun PrintWriter.solve() {
    val a = nextInt()
    val b = nextInt()
    println(Array(b) { a }.fold(1L, Long::times))
}

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