結果

問題 No.490 yukiソート
ユーザー %20%20
提出日時 2017-03-10 23:08:22
言語 Perl
(5.38.0)
結果
AC  
実行時間 531 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 495 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 5,772 KB
最終ジャッジ日時 2023-09-06 15:57:50
合計ジャッジ時間 7,606 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,132 KB
testcase_01 AC 6 ms
5,236 KB
testcase_02 AC 5 ms
5,164 KB
testcase_03 AC 6 ms
5,272 KB
testcase_04 AC 19 ms
5,272 KB
testcase_05 AC 18 ms
5,328 KB
testcase_06 AC 18 ms
5,168 KB
testcase_07 AC 18 ms
5,220 KB
testcase_08 AC 19 ms
5,276 KB
testcase_09 AC 18 ms
5,208 KB
testcase_10 AC 18 ms
5,112 KB
testcase_11 AC 19 ms
5,292 KB
testcase_12 AC 18 ms
5,168 KB
testcase_13 AC 18 ms
5,156 KB
testcase_14 AC 518 ms
5,632 KB
testcase_15 AC 531 ms
5,704 KB
testcase_16 AC 522 ms
5,608 KB
testcase_17 AC 524 ms
5,608 KB
testcase_18 AC 515 ms
5,632 KB
testcase_19 AC 526 ms
5,608 KB
testcase_20 AC 525 ms
5,768 KB
testcase_21 AC 521 ms
5,772 KB
testcase_22 AC 519 ms
5,604 KB
testcase_23 AC 519 ms
5,628 KB
testcase_24 AC 6 ms
5,160 KB
testcase_25 AC 6 ms
5,156 KB
testcase_26 AC 6 ms
5,136 KB
testcase_27 AC 7 ms
5,216 KB
testcase_28 AC 6 ms
5,060 KB
testcase_29 AC 6 ms
5,112 KB
testcase_30 AC 6 ms
5,112 KB
testcase_31 AC 12 ms
5,040 KB
testcase_32 AC 11 ms
5,068 KB
testcase_33 AC 10 ms
5,156 KB
testcase_34 AC 8 ms
5,192 KB
testcase_35 AC 6 ms
5,164 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
@a=glob<>;
for$i(1..2*$n-4){
	$l=$i<$n?0:$i-$n+1;
	$r=$i-1>>1;
	for$p($l..$r){
		$q=$i-$p;
		if($a[$p]>$a[$q]){
			@a[$p,$q]=@a[$q,$p]
		}
	}
}
$,=$";print@a
0