結果

問題 No.832 麻雀修行中
ユーザー tailstails
提出日時 2019-09-04 15:32:25
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-27 07:36:31
合計ジャッジ時間 3,472 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
4,380 KB
testcase_01 AC 50 ms
4,380 KB
testcase_02 AC 46 ms
4,376 KB
testcase_03 AC 52 ms
4,376 KB
testcase_04 AC 59 ms
4,380 KB
testcase_05 AC 53 ms
4,380 KB
testcase_06 AC 39 ms
4,380 KB
testcase_07 AC 62 ms
4,376 KB
testcase_08 AC 48 ms
4,376 KB
testcase_09 AC 48 ms
4,380 KB
testcase_10 AC 51 ms
4,380 KB
testcase_11 AC 52 ms
4,376 KB
testcase_12 AC 58 ms
4,376 KB
testcase_13 AC 63 ms
4,376 KB
testcase_14 AC 59 ms
4,376 KB
testcase_15 AC 66 ms
4,380 KB
testcase_16 AC 65 ms
4,380 KB
testcase_17 AC 74 ms
4,376 KB
testcase_18 AC 61 ms
4,380 KB
testcase_19 AC 60 ms
4,380 KB
testcase_20 AC 51 ms
4,376 KB
testcase_21 AC 66 ms
4,376 KB
testcase_22 AC 75 ms
4,376 KB
testcase_23 AC 59 ms
4,376 KB
testcase_24 AC 51 ms
4,380 KB
testcase_25 AC 55 ms
4,376 KB
testcase_26 AC 75 ms
4,376 KB
testcase_27 AC 49 ms
4,376 KB
testcase_28 AC 70 ms
4,380 KB
testcase_29 AC 42 ms
4,376 KB
testcase_30 AC 56 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
"b-=b+1&4?3:~(b|b/2|b/4)&73?j+=b%8,b-b/8:73,b&&_"
$[_,o*=j]
}
'
((o))||echo $[t+1]))}
0