結果

問題 No.13 囲みたい!
ユーザー tailstails
提出日時 2019-07-26 10:04:01
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 959 ms / 5,000 ms
コード長 164 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 5,324 KB
実行使用メモリ 5,816 KB
最終ジャッジ日時 2023-09-15 00:12:33
合計ジャッジ時間 6,845 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
5,164 KB
testcase_01 AC 14 ms
5,172 KB
testcase_02 AC 14 ms
5,144 KB
testcase_03 AC 959 ms
5,788 KB
testcase_04 AC 39 ms
5,816 KB
testcase_05 AC 953 ms
5,708 KB
testcase_06 AC 872 ms
5,776 KB
testcase_07 AC 886 ms
5,760 KB
testcase_08 AC 673 ms
5,644 KB
testcase_09 AC 672 ms
5,792 KB
testcase_10 AC 52 ms
5,160 KB
testcase_11 AC 417 ms
5,264 KB
testcase_12 AC 24 ms
5,160 KB
testcase_13 AC 114 ms
5,136 KB
testcase_14 AC 125 ms
5,080 KB
testcase_15 AC 13 ms
5,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

r=x-p[x]?x=p[x],r:x
f='a[i]==a[x=i+d]&&(p[x=i,u=r]=r)==u'
p=({0..9999})
read w h
read -dx -aa
for((;d=!y&i<w*h;y=~i%w&&f||(d=w,f),++i)){ :;}
im
echo ${_[y]}possible
0