結果

問題 No.118 門松列(2)
ユーザー tailstails
提出日時 2016-01-17 15:28:27
言語 Perl
(5.38.2)
結果
AC  
実行時間 198 ms / 5,000 ms
コード長 93 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 5,372 KB
実行使用メモリ 24,780 KB
最終ジャッジ日時 2023-08-25 02:39:10
合計ジャッジ時間 4,765 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
6,252 KB
testcase_01 AC 198 ms
24,780 KB
testcase_02 AC 186 ms
23,852 KB
testcase_03 AC 193 ms
24,224 KB
testcase_04 AC 195 ms
24,284 KB
testcase_05 AC 188 ms
24,252 KB
testcase_06 AC 6 ms
5,032 KB
testcase_07 AC 6 ms
5,236 KB
testcase_08 AC 62 ms
5,064 KB
testcase_09 AC 184 ms
23,148 KB
testcase_10 AC 70 ms
8,836 KB
testcase_11 AC 78 ms
10,296 KB
testcase_12 AC 61 ms
7,812 KB
testcase_13 AC 54 ms
6,848 KB
testcase_14 AC 176 ms
22,836 KB
testcase_15 AC 45 ms
5,424 KB
testcase_16 AC 124 ms
14,940 KB
testcase_17 AC 55 ms
6,656 KB
testcase_18 AC 81 ms
10,164 KB
testcase_19 AC 110 ms
13,716 KB
testcase_20 AC 110 ms
14,264 KB
testcase_21 AC 157 ms
19,864 KB
testcase_22 AC 74 ms
8,820 KB
testcase_23 AC 143 ms
18,308 KB
testcase_24 AC 84 ms
10,628 KB
testcase_25 AC 105 ms
13,252 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::i" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

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