結果
問題 | No.108 トリプルカードコンプ |
ユーザー |
![]() |
提出日時 | 2017-02-13 18:38:30 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 1,700 ms / 5,000 ms |
コード長 | 165 bytes |
コンパイル時間 | 840 ms |
コンパイル使用メモリ | 7,200 KB |
実行使用メモリ | 69,248 KB |
最終ジャッジ日時 | 2024-12-29 18:58:38 |
合計ジャッジ時間 | 6,532 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
Unquoted string "c" may clash with future reserved word at Main.pl line 1. Unquoted string "b" may clash with future reserved word at Main.pl line 1. Unquoted string "a" may clash with future reserved word at Main.pl line 1. Main.pl syntax OK
ソースコード
sub f{local($c,$b,$a)=map$$_+pop,c,b,a;${$_="$a $b $c"}//=!/-/&&($n+$a*f(-1,1,0)+$b*f(-1,1)+$c*f(-1))/($a+$b+$c)}$n=<>;${"0 0 0"}=0;$_++for@a[glob<>];print f@a[0..2]