結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
5,172 KB
testcase_01 AC 14 ms
5,072 KB
testcase_02 AC 13 ms
5,176 KB
testcase_03 AC 966 ms
5,680 KB
testcase_04 AC 39 ms
5,824 KB
testcase_05 AC 956 ms
5,792 KB
testcase_06 AC 890 ms
5,700 KB
testcase_07 AC 887 ms
5,760 KB
testcase_08 AC 683 ms
5,808 KB
testcase_09 AC 685 ms
5,780 KB
testcase_10 AC 54 ms
5,088 KB
testcase_11 AC 423 ms
5,364 KB
testcase_12 AC 24 ms
5,068 KB
testcase_13 AC 115 ms
5,132 KB
testcase_14 AC 125 ms
5,176 KB
testcase_15 AC 13 ms
5,088 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=i<w*h>y;y=~i%w&&f||(d=w,f),++i)){ :;}
im
echo ${_[y]}possible
0