結果
| 問題 |
No.572 妖精の演奏
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2017-10-07 01:47:12 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 934 ms / 2,000 ms |
| コード長 | 294 bytes |
| コンパイル時間 | 455 ms |
| コンパイル使用メモリ | 5,632 KB |
| 実行使用メモリ | 7,808 KB |
| 最終ジャッジ日時 | 2024-11-17 03:14:45 |
| 合計ジャッジ時間 | 4,501 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
コンパイルメッセージ
Possible precedence problem on bitwise | operator at Main.pl line 7. Name "main::u" used only once: possible typo at Main.pl line 7. Main.pl syntax OK
ソースコード
$n=<>-1;
@m=0..<>-1;
@1=map[glob],<>;
sub f{
my($a,$b,$c)=@_;
$a<2|$u{$a}++&&return;
f($b=$a>>1);
f($c=$a-$b);
for$y(@m){
for$x(@m){
for$z(@m){
$$a[$x][$y]+=$-=$$b[$x][$z]+$$c[$z][$y]-$$a[$x][$y];
}
}
}
}
f($n);
for$y(@m){
for$x(@m){
$%+=$-=$$n[$x][$y]-$%;
}
}
print$%
tails