結果

問題 No.32 貯金箱の憂鬱
ユーザー バカらっくバカらっく
提出日時 2019-09-07 11:26:21
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 273 ms / 5,000 ms
コード長 368 bytes
コンパイル時間 11,870 ms
コンパイル使用メモリ 408,252 KB
実行使用メモリ 50,596 KB
最終ジャッジ日時 2023-09-30 13:38:52
合計ジャッジ時間 16,103 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 264 ms
50,396 KB
testcase_01 AC 265 ms
50,380 KB
testcase_02 AC 269 ms
50,316 KB
testcase_03 AC 269 ms
50,412 KB
testcase_04 AC 272 ms
50,308 KB
testcase_05 AC 273 ms
50,516 KB
testcase_06 AC 269 ms
50,596 KB
testcase_07 AC 269 ms
50,296 KB
testcase_08 AC 270 ms
50,512 KB
testcase_09 AC 267 ms
50,276 KB
testcase_10 AC 266 ms
50,552 KB
testcase_11 AC 268 ms
50,256 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'arr' is never used
fun main(arr:Array<String>) {
         ^

ソースコード

diff #

import java.util.*

fun main(arr:Array<String>) {
    var inBox100 = readLine()!!.toInt()
    var inBox25 = readLine()!!.toInt()
    var inBox1 = readLine()!!.toInt()

    inBox25 = inBox25 + inBox1 / 25
    inBox1 = inBox1 % 25

    inBox100 = inBox100 + inBox25 / 4
    inBox25 = inBox25 % 4

    inBox100 = inBox100 % 10

    println(inBox100 + inBox25 + inBox1)
}
0