結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
rutilicus
|
| 提出日時 | 2020-08-30 21:12:36 |
| 言語 | Kotlin (2.3.20) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 446 bytes |
| 記録 | |
| コンパイル時間 | 6,512 ms |
| コンパイル使用メモリ | 412,592 KB |
| 最終ジャッジ日時 | 2026-04-03 13:21:29 |
| 合計ジャッジ時間 | 6,821 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge5_0 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
Main.kt:20:13: error: 'fun StringBuilder.appendln(value: Int): 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()!!
}
rutilicus