結果

問題 No.693 square1001 and Permutation 2
ユーザー nebukuro09nebukuro09
提出日時 2018-06-08 22:22:35
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 79 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 6,636 KB
実行使用メモリ 6,160 KB
最終ジャッジ日時 2023-09-12 23:43:24
合計ジャッジ時間 927 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,972 KB
testcase_01 AC 12 ms
5,972 KB
testcase_02 WA -
testcase_03 AC 11 ms
6,020 KB
testcase_04 WA -
testcase_05 AC 11 ms
5,972 KB
testcase_06 AC 11 ms
6,024 KB
testcase_07 AC 11 ms
5,964 KB
testcase_08 WA -
testcase_09 AC 11 ms
5,976 KB
testcase_10 AC 12 ms
6,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
A = map(int, raw_input().split())
print abs(N * (N+1) / 2 - sum(A))
0