結果
| 問題 | No.693 square1001 and Permutation 2 | 
| コンテスト | |
| ユーザー |  T1610 | 
| 提出日時 | 2020-06-30 18:08:55 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 158 bytes | 
| コンパイル時間 | 119 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-23 19:06:19 | 
| 合計ジャッジ時間 | 1,038 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 2 | 
| other | RE * 9 | 
ソースコード
n = int(input())
a = map(int, input().split(' '))
a = a.sorted()
b = [i+1 for i in range(n)]
ans = 0
for i in range(n):
    ans += abs(a[i] - b[i])
print(ans)
            
            
            
        