#include<stdio.h>
//#include<iostream>
#include<math.h>
//using namespace std;
int main()
{
double n,k;
while(scanf("%lf%lf",&n,&k)==2)
{
if(n<=k)
printf("2\n");
else
printf("%.0lf\n",ceil(n*2.0/k));
}
}
时间: 2024-10-10 21:43:54