結果

問題 No.32 貯金箱の憂鬱
ユーザー da_louisda_louis
提出日時 2020-02-07 00:31:49
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 301 ms / 5,000 ms
コード長 214 bytes
コンパイル時間 15,722 ms
コンパイル使用メモリ 420,520 KB
実行使用メモリ 52,972 KB
最終ジャッジ日時 2023-09-30 13:49:04
合計ジャッジ時間 17,557 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 295 ms
52,872 KB
testcase_01 AC 291 ms
52,972 KB
testcase_02 AC 288 ms
52,672 KB
testcase_03 AC 281 ms
52,676 KB
testcase_04 AC 293 ms
52,736 KB
testcase_05 AC 280 ms
52,664 KB
testcase_06 AC 288 ms
52,596 KB
testcase_07 AC 279 ms
52,720 KB
testcase_08 AC 280 ms
52,660 KB
testcase_09 AC 280 ms
52,496 KB
testcase_10 AC 301 ms
52,564 KB
testcase_11 AC 285 ms
52,456 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    p5()
}

fun p5() {
    var (l, m, n) = (1..3).map { readLine()!!.toInt() }

    m += n / 25
    l += m / 4

    val answer = (l % 10) + (m % 4) + (n % 25)

    println(answer)
}
0