結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
5,128 KB
testcase_01 AC 13 ms
5,164 KB
testcase_02 AC 12 ms
5,172 KB
testcase_03 AC 865 ms
5,736 KB
testcase_04 AC 37 ms
5,764 KB
testcase_05 AC 881 ms
5,744 KB
testcase_06 AC 828 ms
5,752 KB
testcase_07 AC 873 ms
5,756 KB
testcase_08 AC 671 ms
5,668 KB
testcase_09 AC 673 ms
5,668 KB
testcase_10 AC 52 ms
5,048 KB
testcase_11 AC 415 ms
5,320 KB
testcase_12 AC 24 ms
5,204 KB
testcase_13 AC 113 ms
5,112 KB
testcase_14 AC 123 ms
5,168 KB
testcase_15 AC 12 ms
5,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

r=x-p[x]?x=p[x],r:x
f='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;y=~i%w&&f||(x=w,f),++i)){ :;}
im
echo ${_[y]}possible
0