結果

問題 No.693 square1001 and Permutation 2
ユーザー Maboy
提出日時 2021-06-21 20:09:27
言語 Swift
(6.0.3)
結果
WA  
実行時間 -
コード長 140 bytes
コンパイル時間 962 ms
コンパイル使用メモリ 130,208 KB
実行使用メモリ 9,472 KB
最終ジャッジ日時 2024-06-22 22:52:21
合計ジャッジ時間 1,618 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

let n = Int(readLine()!)!
let a = readLine()!.split(separator: " ").map{Int($0)!}
let c = a.reduce(0){$0 + $1}
print((1 + n) * (n) / 2 - c)
0