結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー uchida_t
提出日時 2023-04-06 12:56:41
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 575 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 11,382 ms
コンパイル使用メモリ 424,692 KB
実行使用メモリ 107,412 KB
最終ジャッジ日時 2024-10-02 12:16:24
合計ジャッジ時間 21,023 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
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