結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
5,132 KB
testcase_01 AC 12 ms
5,044 KB
testcase_02 AC 13 ms
5,176 KB
testcase_03 AC 906 ms
5,748 KB
testcase_04 AC 36 ms
5,788 KB
testcase_05 AC 885 ms
5,740 KB
testcase_06 AC 819 ms
5,672 KB
testcase_07 AC 823 ms
5,736 KB
testcase_08 AC 660 ms
5,688 KB
testcase_09 AC 633 ms
5,772 KB
testcase_10 AC 49 ms
5,136 KB
testcase_11 AC 388 ms
5,336 KB
testcase_12 AC 23 ms
5,152 KB
testcase_13 AC 103 ms
5,184 KB
testcase_14 AC 118 ms
5,048 KB
testcase_15 AC 11 ms
5,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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