結果
問題 | No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用) |
ユーザー | rutilicus |
提出日時 | 2020-08-30 20:42:42 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 572 ms / 2,000 ms |
コード長 | 229 bytes |
コンパイル時間 | 11,761 ms |
コンパイル使用メモリ | 412,908 KB |
実行使用メモリ | 85,408 KB |
最終ジャッジ日時 | 2023-08-09 18:28:52 |
合計ジャッジ時間 | 21,432 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 270 ms
54,808 KB |
testcase_01 | AC | 274 ms
52,852 KB |
testcase_02 | AC | 271 ms
52,740 KB |
testcase_03 | AC | 272 ms
52,716 KB |
testcase_04 | AC | 280 ms
52,740 KB |
testcase_05 | AC | 283 ms
53,040 KB |
testcase_06 | AC | 309 ms
53,168 KB |
testcase_07 | AC | 422 ms
54,776 KB |
testcase_08 | AC | 447 ms
57,344 KB |
testcase_09 | AC | 460 ms
57,484 KB |
testcase_10 | AC | 547 ms
80,248 KB |
testcase_11 | AC | 509 ms
76,116 KB |
testcase_12 | AC | 512 ms
76,044 KB |
testcase_13 | AC | 517 ms
76,028 KB |
testcase_14 | AC | 510 ms
76,140 KB |
testcase_15 | AC | 510 ms
76,012 KB |
testcase_16 | AC | 572 ms
85,408 KB |
testcase_17 | AC | 276 ms
52,572 KB |
testcase_18 | AC | 271 ms
52,724 KB |
コンパイルメッセージ
Main.kt:5:13: warning: 'appendln(Long): 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(readInputLine().split(" ").sumOf { it.toLong() }) ^
ソースコード
fun main() { val builder = StringBuilder() readInputLine() builder.appendln(readInputLine().split(" ").sumOf { it.toLong() }) print(builder.toString()) } fun readInputLine(): String { return readLine()!! }