An integer D (1 ≤ D ≤ 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 integers w of size s, where each integer is between 1 and 1000.

### Example Input:

```
2
1.3
3
1
2
1
1.4
3
1
2
1
```

### Function Signature:
Write a function f(inputs) that takes in the input.
```python
def f(inputs: List[Tuple[float, int, List[int]]]):
    '''
    inputs: a list of tuples, where each tuple contains:
        - a float (the decimal fraction)
        - an integer (the number of elements in the list)
        - a list of integers
    '''
```