第一行有一个整数t,表示t组测试数据。
第二行一个整数H(0<H<10^9)代表金字塔的高度。
输出
输出一个整数n表示小蜗牛第n天站在金字塔顶上
样例输入
2 1 5
样例输出
1 1
#include<stdio.h>
int main(){
int T,H,n,count;
scanf("%d",&T);
while(T--){
scanf("%d",&H);
H -= 5, n = 5, count = 1;
while(n < H){
count++;
n += 5;
}
printf("%d\n",count);
}
return 0;
}