Find the domain and range of these functions.
- the function that assigns to each pair of positive integers the first integer of the pair
- the function that assigns to each positive integer its largest decimal digit
- the function that assigns to a bit string the number of ones minus the number of zeros in the string
- the function that assigns to each positive integer the largest integer not exceeding the square root of the integer
- the function that assigns to a bit string the longest string of ones in the string