結果

問題 No.496 ワープクリスタル (給料日前編)
ユーザー %20%20
提出日時 2017-03-25 01:25:58
言語 Perl
(5.38.2)
結果
AC  
実行時間 174 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 5,676 KB
最終ジャッジ日時 2023-09-20 07:27:58
合計ジャッジ時間 1,883 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,176 KB
testcase_01 AC 6 ms
5,308 KB
testcase_02 AC 6 ms
5,300 KB
testcase_03 AC 6 ms
5,040 KB
testcase_04 AC 6 ms
5,104 KB
testcase_05 AC 7 ms
5,208 KB
testcase_06 AC 9 ms
5,572 KB
testcase_07 AC 6 ms
5,364 KB
testcase_08 AC 174 ms
5,356 KB
testcase_09 AC 171 ms
5,384 KB
testcase_10 AC 7 ms
5,104 KB
testcase_11 AC 7 ms
5,164 KB
testcase_12 AC 9 ms
5,216 KB
testcase_13 AC 11 ms
5,080 KB
testcase_14 AC 16 ms
5,220 KB
testcase_15 AC 11 ms
5,296 KB
testcase_16 AC 11 ms
5,388 KB
testcase_17 AC 17 ms
5,244 KB
testcase_18 AC 16 ms
5,376 KB
testcase_19 AC 16 ms
5,304 KB
testcase_20 AC 12 ms
5,276 KB
testcase_21 AC 8 ms
5,196 KB
testcase_22 AC 51 ms
5,372 KB
testcase_23 AC 55 ms
5,600 KB
testcase_24 AC 52 ms
5,676 KB
testcase_25 AC 45 ms
5,508 KB
testcase_26 AC 52 ms
5,384 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::N" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($X,$Y,$N,$F)=glob<>;
for$y(0..$Y){
	for$x(0..$X){
		$_[$y][$x]=$F*($x+$y)
	}
}
for(<>){
	($dx,$dy,$c)=glob;
	for$y(reverse$dy..$Y){
		for$x(reverse$dx..$X){
			$_[$y][$x]-=$-=$_[$y][$x]-($_[$y-$dy][$x-$dx]+$c)
		}
	}
}
print$_[$Y][$X]
0