結果

問題 No.2719 Equal Inner Products in Permutation
ユーザー tailstails
提出日時 2024-04-10 16:56:58
言語 Perl
(5.38.2)
結果
AC  
実行時間 326 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 85,060 KB
最終ジャッジ日時 2024-04-22 16:13:25
合計ジャッジ時間 9,114 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
5,504 KB
testcase_01 AC 4 ms
5,376 KB
testcase_02 AC 4 ms
5,504 KB
testcase_03 AC 4 ms
5,504 KB
testcase_04 AC 3 ms
5,504 KB
testcase_05 AC 4 ms
5,504 KB
testcase_06 AC 3 ms
5,504 KB
testcase_07 AC 3 ms
5,504 KB
testcase_08 AC 3 ms
5,632 KB
testcase_09 AC 4 ms
5,504 KB
testcase_10 AC 6 ms
6,272 KB
testcase_11 AC 8 ms
6,272 KB
testcase_12 AC 6 ms
6,400 KB
testcase_13 AC 6 ms
6,144 KB
testcase_14 AC 6 ms
6,400 KB
testcase_15 AC 280 ms
72,012 KB
testcase_16 AC 285 ms
80,988 KB
testcase_17 AC 179 ms
52,236 KB
testcase_18 AC 316 ms
81,780 KB
testcase_19 AC 243 ms
68,500 KB
testcase_20 AC 161 ms
47,936 KB
testcase_21 AC 318 ms
82,436 KB
testcase_22 AC 210 ms
60,088 KB
testcase_23 AC 192 ms
55,512 KB
testcase_24 AC 158 ms
46,576 KB
testcase_25 AC 323 ms
85,060 KB
testcase_26 AC 303 ms
84,988 KB
testcase_27 AC 326 ms
84,932 KB
testcase_28 AC 302 ms
85,060 KB
testcase_29 AC 302 ms
85,060 KB
testcase_30 AC 317 ms
85,056 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub g{($_,$b,$c)=@_;s/./$n*3+$&-9*lc,/g;eval"$n%3?$n%3>1?($c):($b):(),map{$_}1..$n/3-$n%3%2"}
$n=<>;print$n<2?-1:"@{[g(129,'1,2,4,11','1,4'),g(687,'7,9,10,12','3,6'),g(345,'8,5,6,3','5,2')]}";
0