結果

問題 No.693 square1001 and Permutation 2
ユーザー kotatsugamekotatsugame
提出日時 2018-06-14 13:44:13
言語 Perl
(5.38.2)
結果
AC  
実行時間 7 ms / 2,000 ms
コード長 55 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 5,412 KB
最終ジャッジ日時 2023-09-13 04:07:59
合計ジャッジ時間 731 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,084 KB
testcase_01 AC 6 ms
5,412 KB
testcase_02 AC 6 ms
5,080 KB
testcase_03 AC 5 ms
5,104 KB
testcase_04 AC 6 ms
5,276 KB
testcase_05 AC 7 ms
5,264 KB
testcase_06 AC 6 ms
5,100 KB
testcase_07 AC 6 ms
5,068 KB
testcase_08 AC 6 ms
5,164 KB
testcase_09 AC 6 ms
5,096 KB
testcase_10 AC 6 ms
5,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::i" used only once: possible typo at Main.pl line 3.
Main.pl syntax OK

ソースコード

diff #

<>;
for(sort{$a-$b}glob<>){
    $\+=abs ++$i-$_
}
print
0