結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー dodomarocgenexdodomarocgenex
提出日時 2019-10-12 07:50:40
言語 Swift
(5.10.0)
結果
AC  
実行時間 281 ms / 2,000 ms
コード長 106 bytes
コンパイル時間 1,278 ms
コンパイル使用メモリ 129,364 KB
実行使用メモリ 27,984 KB
最終ジャッジ日時 2023-08-20 13:02:47
合計ジャッジ時間 4,643 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
8,120 KB
testcase_01 AC 3 ms
8,232 KB
testcase_02 AC 3 ms
8,088 KB
testcase_03 AC 3 ms
8,108 KB
testcase_04 AC 4 ms
8,204 KB
testcase_05 AC 3 ms
8,168 KB
testcase_06 AC 6 ms
8,224 KB
testcase_07 AC 31 ms
8,520 KB
testcase_08 AC 136 ms
10,840 KB
testcase_09 AC 118 ms
13,360 KB
testcase_10 AC 237 ms
26,188 KB
testcase_11 AC 232 ms
26,536 KB
testcase_12 AC 239 ms
26,200 KB
testcase_13 AC 248 ms
26,584 KB
testcase_14 AC 251 ms
26,544 KB
testcase_15 AC 261 ms
27,056 KB
testcase_16 AC 281 ms
27,984 KB
testcase_17 AC 3 ms
8,108 KB
testcase_18 AC 4 ms
8,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let n = Int(readLine()!)!

let a = readLine()!.split(separator:" ").map { Int($0)! }

print(a.reduce(0,+))
0