結果

問題 No.90 品物の並び替え
ユーザー tails
提出日時 2019-08-25 02:10:45
言語 Bash
(Bash 5.2.21)
結果
AC  
実行時間 166 ms / 5,000 ms
コード長 181 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-14 15:35:16
合計ジャッジ時間 1,145 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

read n m
while read i j s
do
t[i*n+j]=$s
done
for((;++b<2**n;)){
for((j=0;j<n;++j)){
((b&1<<j))&&: $[s=d[c=b^1<<j]] $[i={0..9},s+=(c>>i&1)*t[i*n+j]] $[d[b]<s?r=d[b]=s:0]
}
}
echo $r
0