結果

問題 No.118 門松列(2)
ユーザー tailstails
提出日時 2015-02-15 07:14:01
言語 Perl
(5.38.2)
結果
AC  
実行時間 88 ms / 5,000 ms
コード長 94 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 6,820 KB
実行使用メモリ 22,144 KB
最終ジャッジ日時 2024-10-09 06:53:24
合計ジャッジ時間 2,370 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
6,400 KB
testcase_01 AC 88 ms
22,016 KB
testcase_02 AC 84 ms
21,504 KB
testcase_03 AC 84 ms
21,888 KB
testcase_04 AC 85 ms
22,144 KB
testcase_05 AC 85 ms
22,144 KB
testcase_06 AC 4 ms
5,376 KB
testcase_07 AC 3 ms
5,376 KB
testcase_08 AC 59 ms
5,376 KB
testcase_09 AC 80 ms
20,992 KB
testcase_10 AC 48 ms
8,704 KB
testcase_11 AC 51 ms
9,728 KB
testcase_12 AC 45 ms
7,680 KB
testcase_13 AC 42 ms
6,784 KB
testcase_14 AC 79 ms
20,736 KB
testcase_15 AC 40 ms
5,760 KB
testcase_16 AC 62 ms
14,080 KB
testcase_17 AC 43 ms
6,656 KB
testcase_18 AC 52 ms
9,856 KB
testcase_19 AC 60 ms
12,928 KB
testcase_20 AC 61 ms
13,312 KB
testcase_21 AC 74 ms
18,048 KB
testcase_22 AC 49 ms
8,960 KB
testcase_23 AC 69 ms
16,768 KB
testcase_24 AC 52 ms
10,368 KB
testcase_25 AC 58 ms
12,416 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::i" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

<>;$/=$";++$a[$_]for<>;for$a(@a){map$r+=$_*$a*$a[$'],@a[0..$'-//]for 0..++$i-2}print$r%(1e9+7)
0