(size, comps, total, d)
| 23 | raise |
| 24 | |
| 25 | def store(size, comps, total, d): |
| 26 | if comps == []: |
| 27 | return size, d |
| 28 | if comps[0] not in d: |
| 29 | d[comps[0]] = None, {} |
| 30 | t1, d1 = d[comps[0]] |
| 31 | d[comps[0]] = store(size, comps[1:], t1, d1) |
| 32 | return total, d |
| 33 | |
| 34 | def display(total, d): |
| 35 | show(total, d, '') |