哪里错了

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 闷声大发财 @ 2017-04-01 17:05:50

吴昊晖1000cm


by _Qer @ 2017-04-01 17:05:58

你是s

大 b


by 闷声大发财 @ 2017-04-01 17:06:27

吴昊晖青铜五


by _Qer @ 2017-04-01 17:06:38

赵志傻0cm


by _Qer @ 2017-04-01 17:07:14

赵志傻塑料5


by 闷声大发财 @ 2017-04-01 17:07:18

吴昊晖没有


by 闷声大发财 @ 2017-04-01 17:07:57

我去年买了给登山包 耐磨吧 超耐磨


by _Qer @ 2017-04-01 17:07:57

wqnmlgb


by 闷声大发财 @ 2017-04-01 17:08:29

www.1122iw.com


by _Qer @ 2017-04-01 17:08:44

r你ma卖pi****


| 下一页