結果
| 問題 | No.693 square1001 and Permutation 2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-09 09:44:04 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 87 ms / 2,000 ms |
| コード長 | 125 bytes |
| 記録 | |
| コンパイル時間 | 306 ms |
| コンパイル使用メモリ | 77,344 KB |
| 最終ジャッジ日時 | 2025-12-04 01:13:03 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#yuki693 n=int(raw_input()) a=map(int,raw_input().split()) a.sort() res=0 for i in xrange(n): res+=abs(a[i]-i-1) print res