結果

問題 No.693 square1001 and Permutation 2
ユーザー tailstails
提出日時 2018-06-08 22:24:44
言語 Perl
(5.38.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 69 bytes
コンパイル時間 853 ms
コンパイル使用メモリ 5,288 KB
実行使用メモリ 5,264 KB
最終ジャッジ日時 2023-09-12 23:53:05
合計ジャッジ時間 1,647 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,188 KB
testcase_01 AC 5 ms
5,200 KB
testcase_02 AC 6 ms
5,176 KB
testcase_03 AC 6 ms
5,168 KB
testcase_04 AC 6 ms
5,116 KB
testcase_05 AC 6 ms
5,264 KB
testcase_06 AC 6 ms
5,172 KB
testcase_07 AC 6 ms
5,192 KB
testcase_08 AC 5 ms
5,108 KB
testcase_09 AC 5 ms
5,040 KB
testcase_10 AC 5 ms
5,244 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
@a=sort{$a-$b}glob<>;
for(1..$n){
	$\+=abs$a[$_-1]-$_;
}
print
0