An integer T (1 ≤ T ≤ 100), representing the number of datasets.
For each dataset:
- A decimal fraction r (0 < r < 10).
- An integer s (1 ≤ s ≤ 6).
- A list of s integers, each integer wi (1 ≤ wi ≤ 1000).

### Example Input:

```
5
1.3
3
1
2
1
1.4
3
1
2
1
2.0
3
1
2
1
1.59
4
2
1
1
3
1.7143
4
1
2
3
5
```

### Function Signature:
Write a function f(inputs) that takes in the input.
def f(inputs: List[Tuple[float, int, List[int]]]):
    '''
    inputs: a list of tuples, each containing a decimal fraction, an integer, and a list of integers
    '''