結果

問題 No.497 入れ子の箱
ユーザー tailstails
提出日時 2015-05-06 19:37:29
言語 Perl
(5.38.0)
結果
AC  
実行時間 255 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 5,480 KB
最終ジャッジ日時 2023-09-20 01:40:58
合計ジャッジ時間 6,775 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,728 KB
testcase_01 AC 3 ms
4,836 KB
testcase_02 AC 3 ms
4,852 KB
testcase_03 AC 248 ms
5,068 KB
testcase_04 AC 250 ms
5,120 KB
testcase_05 AC 249 ms
5,188 KB
testcase_06 AC 255 ms
5,256 KB
testcase_07 AC 251 ms
5,360 KB
testcase_08 AC 251 ms
5,364 KB
testcase_09 AC 251 ms
5,184 KB
testcase_10 AC 247 ms
5,356 KB
testcase_11 AC 247 ms
5,412 KB
testcase_12 AC 140 ms
5,104 KB
testcase_13 AC 137 ms
5,232 KB
testcase_14 AC 135 ms
5,236 KB
testcase_15 AC 137 ms
5,292 KB
testcase_16 AC 138 ms
5,408 KB
testcase_17 AC 137 ms
5,104 KB
testcase_18 AC 198 ms
5,108 KB
testcase_19 AC 199 ms
5,120 KB
testcase_20 AC 197 ms
5,228 KB
testcase_21 AC 198 ms
5,108 KB
testcase_22 AC 200 ms
5,400 KB
testcase_23 AC 63 ms
5,332 KB
testcase_24 AC 63 ms
5,480 KB
testcase_25 AC 3 ms
4,776 KB
testcase_26 AC 3 ms
4,936 KB
testcase_27 AC 150 ms
5,360 KB
testcase_28 AC 148 ms
5,124 KB
testcase_29 AC 149 ms
5,292 KB
testcase_30 AC 108 ms
5,308 KB
testcase_31 AC 109 ms
5,368 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
@a=sort{$a->[0]<=>$b->[0]}map[sort{$b<=>$a}/\d+/g],<>;

for$i(0..@a-1){
	$a=$a[$i];
	for$j(0..$i-1){
		$b=$a[$j];
		if($a->[0]>$b->[0]&&$a->[1]>$b->[1]&&$a->[2]>$b->[2]){
			if($r[$i]<$r[$j]+1){
				$r[$i]=$r[$j]+1;
				if($r<$r[$i]){
					$r=$r[$i];
				}
			}
		}
	}
}
print$r+1;
0