結果

問題 No.490 yukiソート
ユーザー tailstails
提出日時 2017-03-10 22:29:49
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,106 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 450 ms
コンパイル使用メモリ 5,208 KB
実行使用メモリ 5,816 KB
最終ジャッジ日時 2023-09-06 15:34:42
合計ジャッジ時間 13,025 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,216 KB
testcase_01 AC 6 ms
5,148 KB
testcase_02 AC 6 ms
5,152 KB
testcase_03 AC 6 ms
5,220 KB
testcase_04 AC 30 ms
5,452 KB
testcase_05 AC 30 ms
5,280 KB
testcase_06 AC 30 ms
5,204 KB
testcase_07 AC 30 ms
5,256 KB
testcase_08 AC 32 ms
5,232 KB
testcase_09 AC 31 ms
5,380 KB
testcase_10 AC 31 ms
5,272 KB
testcase_11 AC 31 ms
5,276 KB
testcase_12 AC 31 ms
5,212 KB
testcase_13 AC 30 ms
5,152 KB
testcase_14 AC 1,077 ms
5,704 KB
testcase_15 AC 1,082 ms
5,816 KB
testcase_16 AC 1,099 ms
5,716 KB
testcase_17 AC 1,106 ms
5,816 KB
testcase_18 AC 1,075 ms
5,656 KB
testcase_19 AC 1,076 ms
5,648 KB
testcase_20 AC 1,079 ms
5,796 KB
testcase_21 AC 1,072 ms
5,788 KB
testcase_22 AC 1,074 ms
5,692 KB
testcase_23 AC 1,083 ms
5,568 KB
testcase_24 AC 7 ms
5,212 KB
testcase_25 AC 6 ms
5,152 KB
testcase_26 AC 6 ms
5,216 KB
testcase_27 AC 6 ms
5,392 KB
testcase_28 AC 6 ms
5,216 KB
testcase_29 AC 6 ms
5,396 KB
testcase_30 AC 6 ms
5,216 KB
testcase_31 AC 6 ms
5,148 KB
testcase_32 AC 6 ms
5,312 KB
testcase_33 AC 6 ms
5,256 KB
testcase_34 AC 6 ms
5,368 KB
testcase_35 AC 6 ms
5,408 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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