10 1
13
#include<iostream> #include<cmath> using namespace std; int main() { double vul,d;int n; while(cin>>vul>>d) { for( n=1;n*d*(n+1)<vul*2;n++); cout<<ceil(vul/d)+n-1<<endl; } return 0; }
原文地址:http://blog.csdn.net/lsgqjh/article/details/44891725