結果

問題 No.9011 数字を全て足そう(数字だけ)
ユーザー kazu116kazu116
提出日時 2019-05-23 14:40:57
言語 Swift
(5.8.1)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 1,392 ms
コンパイル使用メモリ 125,800 KB
実行使用メモリ 7,768 KB
最終ジャッジ日時 2023-08-20 12:26:39
合計ジャッジ時間 2,590 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,612 KB
testcase_01 AC 3 ms
7,624 KB
testcase_02 AC 4 ms
7,768 KB
testcase_03 AC 4 ms
7,644 KB
testcase_04 AC 3 ms
7,516 KB
testcase_05 AC 3 ms
7,436 KB
testcase_06 AC 4 ms
7,672 KB
testcase_07 AC 3 ms
7,512 KB
testcase_08 AC 3 ms
7,588 KB
testcase_09 AC 4 ms
7,652 KB
testcase_10 AC 4 ms
7,636 KB
testcase_11 AC 4 ms
7,640 KB
testcase_12 AC 3 ms
7,596 KB
testcase_13 AC 3 ms
7,612 KB
testcase_14 AC 3 ms
7,680 KB
testcase_15 AC 4 ms
7,712 KB
testcase_16 AC 4 ms
7,400 KB
testcase_17 AC 3 ms
7,376 KB
testcase_18 AC 3 ms
7,436 KB
testcase_19 AC 3 ms
7,640 KB
testcase_20 AC 4 ms
7,380 KB
testcase_21 AC 4 ms
7,688 KB
testcase_22 AC 4 ms
7,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let input:[String] = readLine()!.map{String($0)}
var value:Int = 0
for i in 0 ..< input.count {
    value += Int(input[i])!
}
print(value)
0