結果
問題 | No.351 市松スライドパズル |
ユーザー |
![]() |
提出日時 | 2018-05-28 17:34:26 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 936 ms / 2,000 ms |
コード長 | 173 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 6,812 KB |
実行使用メモリ | 154,112 KB |
最終ジャッジ日時 | 2024-06-30 07:48:14 |
合計ジャッジ時間 | 11,299 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 17 |
コンパイルメッセージ
Unquoted string "black" may clash with future reserved word at Main.pl line 15. Unquoted string "white" may clash with future reserved word at Main.pl line 15. Main.pl syntax OK
ソースコード
($H,$W)=glob<>; <>; for(reverse<>){ ($S,$K)=split; if($S eq'R'){ if($K==$y){ $x=($x-1)%$W } }else{ if($K==$x){ $y=($y-1)%$H } } } print$x+$y&1?black:white