CF1679A AvtoBus
题目描述
春天来了,车队的巴士需要更换轮胎。
轮胎有 $n$ 个,巴士有两种,第一种有 $4$ 个轮子,第二种有 $6$ 个。
求车队最少和最多有几辆巴士。
输入格式
第一行一个整数 $t$,表示测试数据的数量。
接下来 $t$ 行,每行一个整数 $n$,表示轮胎的总数。
输出格式
共 $t$ 行,每行两个整数,分别表示巴士数量的最小值和最大值。
若无解,输出 $-1$。
说明/提示
In the first test case the total number of wheels is $ 4 $ . It means that there is the only one bus with two axles in the bus fleet.
In the second test case it's easy to show that there is no suitable number of buses with $ 7 $ wheels in total.
In the third test case the total number of wheels is $ 24 $ . The following options are possible:
- Four buses with three axles.
- Three buses with two axles and two buses with three axles.
- Six buses with two axles.
So the minimum number of buses is $ 4 $ and the maximum number of buses is $ 6 $ .