結果

問題 No.496 ワープクリスタル (給料日前編)
ユーザー %20%20
提出日時 2017-03-25 03:40:11
言語 Perl
(5.38.2)
結果
AC  
実行時間 161 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 5,632 KB
最終ジャッジ日時 2023-09-20 07:42:12
合計ジャッジ時間 2,317 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
5,056 KB
testcase_01 AC 7 ms
5,048 KB
testcase_02 AC 6 ms
5,156 KB
testcase_03 AC 6 ms
5,104 KB
testcase_04 AC 7 ms
5,316 KB
testcase_05 AC 6 ms
5,100 KB
testcase_06 AC 8 ms
5,496 KB
testcase_07 AC 7 ms
5,116 KB
testcase_08 AC 161 ms
5,596 KB
testcase_09 AC 160 ms
5,512 KB
testcase_10 AC 8 ms
5,288 KB
testcase_11 AC 8 ms
5,316 KB
testcase_12 AC 9 ms
5,128 KB
testcase_13 AC 11 ms
5,232 KB
testcase_14 AC 16 ms
5,232 KB
testcase_15 AC 11 ms
5,296 KB
testcase_16 AC 10 ms
5,240 KB
testcase_17 AC 16 ms
5,292 KB
testcase_18 AC 15 ms
5,352 KB
testcase_19 AC 16 ms
5,268 KB
testcase_20 AC 12 ms
5,272 KB
testcase_21 AC 9 ms
5,208 KB
testcase_22 AC 49 ms
5,560 KB
testcase_23 AC 53 ms
5,632 KB
testcase_24 AC 50 ms
5,384 KB
testcase_25 AC 43 ms
5,396 KB
testcase_26 AC 49 ms
5,468 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-$y][$X-$x]=$F*($x+$y)
	}
}
for(<>){
	($dx,$dy,$c)=glob;
	for$y(0..$Y-$dy){
		for$x(0..$X-$dx){
			$_[$y][$x]-=$-=$_[$y][$x]-($_[$y+$dy][$x+$dx]+$c)
		}
	}
}
print$_[0][0]
0