結果
| 問題 | No.546 オンリー・ワン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-15 00:19:41 |
| 言語 | Perl (5.40.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 201 ms |
| コンパイル使用メモリ | 6,824 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-08 00:22:29 |
| 合計ジャッジ時間 | 1,127 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 4 WA * 3 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
sub g{$_[1]?g($_[1],"@_"%$_[1]):"@_"}
sub f{!$_[2]?$s+=(($==$h/$_[1])-=$l/$_[1])*$_*($_%2*2-1):"@_"<$n?(f("@_"+1,$_[1]*$c[$_[0]]/g($_[1],$c[$_[0]]),$_[2]-1),f("@_"+1,$_[1],$_[2])):0;}
($n,$l,$h,@c)=glob<>.<>;$l--;
f 0,1,$_ for 1..$n;
print$s