結果

問題 No.369 足し間違い
ユーザー バカらっくバカらっく
提出日時 2018-03-02 13:06:52
言語 Swift
(5.10.0)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 1,467 ms
コンパイル使用メモリ 127,900 KB
実行使用メモリ 8,116 KB
最終ジャッジ日時 2023-08-20 10:23:40
合計ジャッジ時間 2,049 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,764 KB
testcase_01 AC 3 ms
7,892 KB
testcase_02 AC 4 ms
7,944 KB
testcase_03 AC 3 ms
7,916 KB
testcase_04 AC 13 ms
8,044 KB
testcase_05 AC 6 ms
7,928 KB
testcase_06 AC 13 ms
8,068 KB
testcase_07 AC 15 ms
8,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let inpt = Int(readLine()!)!
let total = readLine()!.split(separator: " ").map{Int($0)!}.reduce(0){$0+$1}
let tmp = Int(readLine()!)!
let ans = total - tmp
print(ans)
0