哪里错了

P1035 [NOIP2002 普及组] 级数求和

闷声大发财 @ 2017-04-01 17:01:20

我的代码

#include<cstdio>
#include<cstdlib>
int main()
{
    int a=0,b=1;
    int c=2;
    scanf("%d",&a);
    while(b>a)
    {
        b=b+1/c;
        c++;    
}
printf("%d",c);
system("pause");
return 0;
}

by _Qer @ 2017-04-01 17:09:17

@小小牛2333 神经吗


by lizr2004 @ 2017-04-04 16:46:40

double!


by Messi李 @ 2017-04-24 17:21:18

哈哈哈哈哈哈


by Jamie_Vardy @ 2017-04-24 17:21:21

两个最强塑料


by Messi李 @ 2017-04-24 17:22:31

在这里吵什么呢?


上一页 |