0
已解决
http://judge.codingtang.com/problem/1688/
#include<iostream>
using namespace std;
int main()
{
long double s=0;
int n=1;
while(1)
{
s+=1.0/n;
n++;
if(s>10) break;
}
cout<<n;
return 0;
}
1
已采纳
1
1
0
0
0
0
0