結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  rutilicus | 
| 提出日時 | 2020-08-30 21:12:36 | 
| 言語 | Kotlin (2.1.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 317 ms / 5,000 ms | 
| コード長 | 446 bytes | 
| コンパイル時間 | 13,114 ms | 
| コンパイル使用メモリ | 428,224 KB | 
| 実行使用メモリ | 56,924 KB | 
| 最終ジャッジ日時 | 2024-07-23 08:03:23 | 
| 合計ジャッジ時間 | 17,826 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
コンパイルメッセージ
Main.kt:20:13: warning: 'appendln(Int): kotlin.text.StringBuilder /* = java.lang.StringBuilder */' is deprecated. Use appendLine instead. Note that the new method always appends the line feed character '\n' regardless of the system line separator.
    builder.appendln(ans)
            ^
            
            ソースコード
fun main() {
    val builder = StringBuilder()
    var current = readInputLine().toInt() * 100
    current += readInputLine().toInt() * 25
    current += readInputLine().toInt() * 1
    current %= 1000
    var ans = 0
    ans += current / 100
    current %= 100
    ans += current / 25
    current %= 25
    ans += current
    builder.appendln(ans)
    print(builder.toString())
}
fun readInputLine(): String {
    return readLine()!!
}
            
            
            
        