結果
| 問題 |
No.1355 AND OR GAME
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2021-01-20 11:31:49 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 984 ms / 2,000 ms |
| コード長 | 189 bytes |
| コンパイル時間 | 361 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 58,624 KB |
| 最終ジャッジ日時 | 2024-12-22 21:24:58 |
| 合計ジャッジ時間 | 40,637 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 95 |
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 1. Main.pl syntax OK
ソースコード
($n,$x,$y)=glob<>;
$z=$y+0;
@r=reverse map{
$s=(~$z&$_+0?0:2)|($y&~$_?0:1);
$y=-1,$z=0 if !$s;
$y&=~$_ if $s&2;
$z|=~$_ if $s&1;
$s;
}reverse$x,glob<>;
@r=-1 if shift@r!=3;
print"@r";
tails