結果

問題 No.1681 +-*
ユーザー tailstails
提出日時 2021-09-17 22:10:05
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 123 bytes
コンパイル時間 537 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 55,988 KB
最終ジャッジ日時 2023-09-12 07:50:44
合計ジャッジ時間 9,240 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,344 KB
testcase_01 AC 6 ms
5,356 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 345 ms
30,444 KB
testcase_14 AC 706 ms
55,988 KB
testcase_15 AC 6 ms
5,292 KB
testcase_16 AC 6 ms
5,180 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
0