結果

問題 No.1713 trick or treat!
ユーザー バカらっくバカらっく
提出日時 2022-02-04 10:25:19
言語 Kotlin
(1.9.10)
結果
AC  
実行時間 291 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 12,260 ms
コンパイル使用メモリ 422,080 KB
実行使用メモリ 52,896 KB
最終ジャッジ日時 2023-09-02 03:27:35
合計ジャッジ時間 15,522 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 289 ms
52,752 KB
testcase_01 AC 291 ms
52,672 KB
testcase_02 AC 284 ms
52,732 KB
testcase_03 AC 282 ms
52,896 KB
testcase_04 AC 287 ms
52,688 KB
testcase_05 AC 282 ms
52,680 KB
testcase_06 AC 287 ms
52,756 KB
testcase_07 AC 281 ms
52,416 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val (trick, treat) = readLine()!!.split(" ").map { it.toInt() }
    val num = (trick or treat)
    var ans = 1L
    for(i in (1..num)) {
        ans*=i
    }
    println(ans)
}
0