結果
問題 | No.9001 標準入出力の練習問題(テスト用) |
ユーザー | rutilicus |
提出日時 | 2020-08-30 20:37:59 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 277 ms / 1,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 9,301 ms |
コンパイル使用メモリ | 428,944 KB |
実行使用メモリ | 56,888 KB |
最終ジャッジ日時 | 2024-04-27 13:10:53 |
合計ジャッジ時間 | 10,967 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 277 ms
56,888 KB |
testcase_01 | AC | 269 ms
56,856 KB |
コンパイルメッセージ
Main.kt:7:13: warning: 'appendln(String?): 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("${a + b} $s") ^
ソースコード
fun main() { val builder = StringBuilder() val (a, b) = readInputLine().split(" ").map { it.toInt() } val s = readInputLine() builder.appendln("${a + b} $s") print(builder.toString()) } fun readInputLine(): String { return readLine()!! }