結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー uchida_tuchida_t
提出日時 2023-04-06 12:56:41
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 600 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 10,819 ms
コンパイル使用メモリ 431,256 KB
実行使用メモリ 107,552 KB
最終ジャッジ日時 2024-04-10 10:26:43
合計ジャッジ時間 20,709 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 312 ms
56,916 KB
testcase_01 AC 316 ms
56,964 KB
testcase_02 AC 317 ms
56,952 KB
testcase_03 AC 317 ms
56,940 KB
testcase_04 AC 317 ms
56,912 KB
testcase_05 AC 323 ms
56,916 KB
testcase_06 AC 359 ms
57,280 KB
testcase_07 AC 473 ms
61,432 KB
testcase_08 AC 508 ms
67,640 KB
testcase_09 AC 523 ms
69,856 KB
testcase_10 AC 591 ms
107,456 KB
testcase_11 AC 594 ms
107,496 KB
testcase_12 AC 600 ms
107,552 KB
testcase_13 AC 594 ms
107,356 KB
testcase_14 AC 592 ms
107,396 KB
testcase_15 AC 593 ms
107,460 KB
testcase_16 AC 593 ms
107,532 KB
testcase_17 AC 313 ms
56,908 KB
testcase_18 AC 309 ms
57,012 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.toLong() }
	println(array.sum())
}
0