import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double VUL=sc.nextDouble(); double D=sc.nextDouble(); double sum=0; int cnt=0; int times=0; while(sum<VUL/D){ cnt++; if(sum+cnt<=VUL/D){ times+=cnt; sum+=cnt;} else { times+=(int)Math.ceil( VUL/D-sum ); sum=VUL/D; } if(sum<VUL/D) times++; } System.out.println(times); } }
0.0分
1 人评分