|
|||
optimize-1Find the minimum (m) and maximum (M) integer values taken by the function on different [L, R] intervals, considering only integer values . Input specificationThe first line contains , the number of test cases. Description of each test case: First line: Then lines, each containing . Next line: the number of queries. Then lines follow, each containing Output specificationFor each test case, output the corresponding and values for each query. Constraints
Sample input 1
Sample output 1
|
|||
| University of Debrecen; Faculty of Informatics; v. 09/30/2024 |