結果

問題 No.1645 AB's abs
ユーザー tailstails
提出日時 2021-08-13 21:38:51
言語 Perl
(5.38.2)
結果
AC  
実行時間 614 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 767 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 8,960 KB
最終ジャッジ日時 2024-04-14 17:13:35
合計ジャッジ時間 19,179 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
8,832 KB
testcase_01 AC 18 ms
8,448 KB
testcase_02 AC 194 ms
8,832 KB
testcase_03 AC 18 ms
8,448 KB
testcase_04 AC 24 ms
8,832 KB
testcase_05 AC 36 ms
8,704 KB
testcase_06 AC 60 ms
8,960 KB
testcase_07 AC 31 ms
8,704 KB
testcase_08 AC 245 ms
8,960 KB
testcase_09 AC 247 ms
8,832 KB
testcase_10 AC 221 ms
8,960 KB
testcase_11 AC 219 ms
8,832 KB
testcase_12 AC 226 ms
8,960 KB
testcase_13 AC 598 ms
8,704 KB
testcase_14 AC 566 ms
8,832 KB
testcase_15 AC 594 ms
8,832 KB
testcase_16 AC 569 ms
8,960 KB
testcase_17 AC 592 ms
8,960 KB
testcase_18 AC 568 ms
8,960 KB
testcase_19 AC 602 ms
8,960 KB
testcase_20 AC 549 ms
8,704 KB
testcase_21 AC 572 ms
8,960 KB
testcase_22 AC 593 ms
8,832 KB
testcase_23 AC 612 ms
8,832 KB
testcase_24 AC 608 ms
8,832 KB
testcase_25 AC 611 ms
8,832 KB
testcase_26 AC 610 ms
8,832 KB
testcase_27 AC 611 ms
8,832 KB
testcase_28 AC 609 ms
8,832 KB
testcase_29 AC 610 ms
8,960 KB
testcase_30 AC 607 ms
8,832 KB
testcase_31 AC 607 ms
8,960 KB
testcase_32 AC 609 ms
8,960 KB
testcase_33 AC 609 ms
8,960 KB
testcase_34 AC 608 ms
8,704 KB
testcase_35 AC 614 ms
8,832 KB
testcase_36 AC 610 ms
8,960 KB
testcase_37 AC 606 ms
8,960 KB
testcase_38 AC 606 ms
8,960 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