結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー uchida_tuchida_t
提出日時 2023-04-06 12:53:27
言語 Kotlin
(1.9.23)
結果
RE  
実行時間 -
コード長 140 bytes
コンパイル時間 13,675 ms
コンパイル使用メモリ 435,344 KB
実行使用メモリ 107,604 KB
最終ジャッジ日時 2024-04-10 10:23:30
合計ジャッジ時間 22,605 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 315 ms
56,976 KB
testcase_01 AC 316 ms
57,124 KB
testcase_02 AC 320 ms
57,120 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 523 ms
69,720 KB
testcase_10 AC 589 ms
107,484 KB
testcase_11 AC 590 ms
107,504 KB
testcase_12 AC 590 ms
107,460 KB
testcase_13 AC 591 ms
107,496 KB
testcase_14 AC 590 ms
107,604 KB
testcase_15 AC 595 ms
107,516 KB
testcase_16 AC 600 ms
107,400 KB
testcase_17 AC 313 ms
57,012 KB
testcase_18 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>){
         ^
Main.kt:2:6: warning: variable 'n' is never used
	val n = readLine()!!.toInt()
     ^

ソースコード

diff #

fun main(args: Array<String>){
	val n = readLine()!!.toInt()
	val array = readLine()!!.split(" ").map { it.toInt() }
	println(array.sum())
}
0