結果
問題 |
No.388 階段 (1)
|
ユーザー |
![]() |
提出日時 | 2020-08-30 20:52:23 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 304 ms / 2,000 ms |
コード長 | 234 bytes |
コンパイル時間 | 10,588 ms |
コンパイル使用メモリ | 426,252 KB |
実行使用メモリ | 57,024 KB |
最終ジャッジ日時 | 2024-11-15 15:24:23 |
合計ジャッジ時間 | 16,410 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
コンパイルメッセージ
Main.kt:6: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(s / f + 1) ^
ソースコード
fun main() { val builder = StringBuilder() val (s, f) = readInputLine().split(" ").map { it.toInt() } builder.appendln(s / f + 1) print(builder.toString()) } fun readInputLine(): String { return readLine()!! }