站外题求助!

学术版

[OJ](http://218.5.5.242:9021/)
by Tiger_Rory @ 2024-03-30 21:10:43


@[Tiger_Rory](/user/680295) 是这样的吗? ```cpp #include<bits/stdc++.h> using namespace std; double c,s,n; int main(){ cin>>c>>s>>n; double sum=n*c; cout<<floor(sum/s)<<'\n'; return 0; } ```
by 3_14 @ 2024-03-30 21:14:05


@[3_14](https://www.luogu.com.cn/user/913288) 不是
by Tiger_Rory @ 2024-03-30 21:29:43


$(n-1) \times c$ 吧
by luuia @ 2024-03-30 21:35:47


@[luuia](https://www.luogu.com.cn/user/557800) $(n-1)*c $ 换ceil过了! 感谢!
by Tiger_Rory @ 2024-03-31 14:34:22


|