結果

問題 No.13 囲みたい!
ユーザー tailstails
提出日時 2019-07-26 10:33:36
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 964 ms / 5,000 ms
コード長 157 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 5,804 KB
最終ジャッジ日時 2023-09-15 00:13:43
合計ジャッジ時間 6,828 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
5,096 KB
testcase_01 AC 14 ms
5,148 KB
testcase_02 AC 15 ms
5,160 KB
testcase_03 AC 964 ms
5,788 KB
testcase_04 AC 40 ms
5,804 KB
testcase_05 AC 945 ms
5,792 KB
testcase_06 AC 880 ms
5,636 KB
testcase_07 AC 888 ms
5,636 KB
testcase_08 AC 673 ms
5,712 KB
testcase_09 AC 679 ms
5,712 KB
testcase_10 AC 52 ms
5,168 KB
testcase_11 AC 417 ms
5,360 KB
testcase_12 AC 24 ms
5,156 KB
testcase_13 AC 115 ms
5,092 KB
testcase_14 AC 125 ms
5,108 KB
testcase_15 AC 13 ms
5,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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