大佬这是什么错???

P1421 小玉买文具

乘号
by chengni @ 2018-07-01 21:41:24


#include<iostream> #include<cstdio> using namespace std; int main() { float n=1.9; int a,b,c,i,k,j; cin>>a>>b; c=a+0.1*b; for(int m=1;m>>0;i++) { k=n*(i+1); if(k>=c) { cout<<i<<endl; return 0; } } }
by 24K纯金 @ 2018-07-01 21:46:32


没显示但我打了
by 24K纯金 @ 2018-07-01 21:46:46


*
by 24K纯金 @ 2018-07-01 21:46:52


不知道为什么不显示
by 24K纯金 @ 2018-07-01 21:47:16


```cpp #include<iostream> #include<cstdio> using namespace std; int main() { float n=1.9; int a,b,c,i,k,j; cin>>a>>b; c=a+0.1*b; for(int m=1;m>>0;i++) { k=n*(i+1); if(k>=c) { cout<<i<<endl; return 0; } } } ```
by 24K纯金 @ 2018-07-01 21:48:00


c=a+0.1*b?
by 90182si @ 2018-07-01 21:49:30


@[24K纯金](/space/show?uid=6703) m>>0???
by LCuter @ 2018-07-01 22:05:08


```cpp #include<iostream> #include<cstdio> using namespace std; int main() { float n=1.9; int a,b,c,i,k,j; cin>>a>>b; c=a+0.1*b; for(int m=1;m>0;i++) { k=n*(i+1); if(k>=c) { cout<<i<<endl; return 0; } } } ```
by 24K纯金 @ 2018-07-01 22:15:43


然而还是80
by 24K纯金 @ 2018-07-01 22:15:54


| 下一页