結果

問題 No.1681 +-*
ユーザー tailstails
提出日時 2021-09-17 22:10:47
言語 Perl
(5.38.2)
結果
AC  
実行時間 790 ms / 2,000 ms
コード長 126 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 5,424 KB
実行使用メモリ 56,032 KB
最終ジャッジ日時 2023-09-12 07:52:17
合計ジャッジ時間 9,672 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
5,220 KB
testcase_01 AC 6 ms
5,340 KB
testcase_02 AC 9 ms
5,496 KB
testcase_03 AC 9 ms
5,540 KB
testcase_04 AC 8 ms
5,440 KB
testcase_05 AC 388 ms
54,780 KB
testcase_06 AC 380 ms
54,736 KB
testcase_07 AC 391 ms
54,680 KB
testcase_08 AC 612 ms
55,844 KB
testcase_09 AC 609 ms
55,956 KB
testcase_10 AC 627 ms
55,840 KB
testcase_11 AC 649 ms
56,032 KB
testcase_12 AC 670 ms
55,896 KB
testcase_13 AC 380 ms
30,440 KB
testcase_14 AC 731 ms
55,900 KB
testcase_15 AC 6 ms
5,304 KB
testcase_16 AC 6 ms
5,176 KB
testcase_17 AC 744 ms
55,916 KB
testcase_18 AC 790 ms
55,772 KB
testcase_19 AC 769 ms
55,880 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 2.
Main.pl syntax OK

ソースコード

diff #

sub MD(){1000000007}
$n=<>;
$m=1;
@a=map$m=$m*$_%MD,glob<>;
$s=pop@a;
$b=2;
$s+=$_*$b%MD,$b=$b*3%MD for reverse@a;
print$s%MD;
0