An integer D (1 ≤ D ≤ 10), representing the number of datasets. Each dataset consists of:
- A decimal fraction R (0 < R < 10).
- An integer S (1 ≤ S ≤ 6).
- A list of S integers, each between 1 and 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 float, an integer, and a list of integers 
    '''