結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,176 KB
testcase_01 AC 6 ms
5,056 KB
testcase_02 AC 6 ms
5,204 KB
testcase_03 AC 7 ms
5,332 KB
testcase_04 AC 6 ms
5,140 KB
testcase_05 AC 6 ms
5,264 KB
testcase_06 AC 8 ms
5,536 KB
testcase_07 AC 6 ms
5,036 KB
testcase_08 AC 177 ms
5,672 KB
testcase_09 AC 178 ms
5,580 KB
testcase_10 AC 8 ms
5,040 KB
testcase_11 AC 9 ms
5,308 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 36 ms
5,332 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 0..$Y){
		for$x(reverse 0..$X){
			$_[$y][$x]-=$-=$_[$y][$x]-($_[$y-$dy][$x-$dx]+$c)
		}
	}
}
print$_[$Y][$X]
0