結果

問題 No.1645 AB's abs
ユーザー tailstails
提出日時 2021-08-13 21:38:51
言語 Perl
(5.38.0)
結果
AC  
実行時間 604 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 635 ms
コンパイル使用メモリ 5,368 KB
実行使用メモリ 8,320 KB
最終ジャッジ日時 2023-07-27 03:46:12
合計ジャッジ時間 18,923 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
8,068 KB
testcase_01 AC 17 ms
7,672 KB
testcase_02 AC 187 ms
7,940 KB
testcase_03 AC 16 ms
7,816 KB
testcase_04 AC 23 ms
7,988 KB
testcase_05 AC 35 ms
8,200 KB
testcase_06 AC 58 ms
8,132 KB
testcase_07 AC 27 ms
8,176 KB
testcase_08 AC 240 ms
7,988 KB
testcase_09 AC 237 ms
8,220 KB
testcase_10 AC 215 ms
7,984 KB
testcase_11 AC 233 ms
7,980 KB
testcase_12 AC 219 ms
8,320 KB
testcase_13 AC 575 ms
8,180 KB
testcase_14 AC 547 ms
7,980 KB
testcase_15 AC 593 ms
8,240 KB
testcase_16 AC 554 ms
8,172 KB
testcase_17 AC 577 ms
8,080 KB
testcase_18 AC 555 ms
8,044 KB
testcase_19 AC 573 ms
8,240 KB
testcase_20 AC 529 ms
8,272 KB
testcase_21 AC 573 ms
8,136 KB
testcase_22 AC 572 ms
8,100 KB
testcase_23 AC 586 ms
8,204 KB
testcase_24 AC 588 ms
8,084 KB
testcase_25 AC 601 ms
8,196 KB
testcase_26 AC 593 ms
8,204 KB
testcase_27 AC 599 ms
8,248 KB
testcase_28 AC 598 ms
8,092 KB
testcase_29 AC 595 ms
7,972 KB
testcase_30 AC 600 ms
8,128 KB
testcase_31 AC 595 ms
8,204 KB
testcase_32 AC 585 ms
7,976 KB
testcase_33 AC 589 ms
8,060 KB
testcase_34 AC 586 ms
7,988 KB
testcase_35 AC 604 ms
8,292 KB
testcase_36 AC 589 ms
8,056 KB
testcase_37 AC 585 ms
8,004 KB
testcase_38 AC 590 ms
8,020 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 2.
Main.pl syntax OK

ソースコード

diff #

$m=998244353;
$n=<>;
$d[10000]=1;
for$a(glob<>){
	for$v(100..19900){
		$e[$v+$a]+=$d[$v];
		$e[$v-$a]+=$d[$v];
	}
	@d=map$_%$m,@e;
	@e=();
}
for(0..10000){
	$z+=$_*$d[$_+10000];
}
print$z*2%$m;
0