結果

問題 No.832 麻雀修行中
ユーザー tailstails
提出日時 2019-09-04 15:35:11
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 33 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-27 07:41:04
合計ジャッジ時間 2,681 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
4,384 KB
testcase_01 AC 37 ms
4,376 KB
testcase_02 AC 33 ms
4,376 KB
testcase_03 AC 38 ms
4,376 KB
testcase_04 AC 41 ms
4,380 KB
testcase_05 AC 37 ms
4,380 KB
testcase_06 AC 29 ms
4,376 KB
testcase_07 AC 41 ms
4,380 KB
testcase_08 AC 37 ms
4,380 KB
testcase_09 AC 37 ms
4,376 KB
testcase_10 AC 38 ms
4,380 KB
testcase_11 AC 38 ms
4,376 KB
testcase_12 AC 42 ms
4,376 KB
testcase_13 AC 44 ms
4,376 KB
testcase_14 AC 43 ms
4,376 KB
testcase_15 AC 47 ms
4,380 KB
testcase_16 AC 46 ms
4,376 KB
testcase_17 AC 49 ms
4,376 KB
testcase_18 AC 41 ms
4,380 KB
testcase_19 AC 41 ms
4,376 KB
testcase_20 AC 36 ms
4,380 KB
testcase_21 AC 45 ms
4,380 KB
testcase_22 AC 49 ms
4,376 KB
testcase_23 AC 42 ms
4,380 KB
testcase_24 AC 37 ms
4,380 KB
testcase_25 AC 39 ms
4,380 KB
testcase_26 AC 49 ms
4,376 KB
testcase_27 AC 34 ms
4,376 KB
testcase_28 AC 48 ms
4,376 KB
testcase_29 AC 32 ms
4,376 KB
testcase_30 AC 38 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m=8**9/7
while read -n1 s;do((a+=8**s/8));done
for t in {0..8}
{(((a+=8**t,o=a&a/4&m))||($[o|=a&m*5]
eval h=8**{0..8}'
((a/h%8>1))&&{
j=
b=a-2*h
f="b-=b+1&4?3:~(b|b/2|b/4)&73?j+=b%8,b-b/8:73,b&&f"
$[f,o*=j]
}
'
((o))||echo $[t+1]))}
0