题解 | #KiKi和酸奶#
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include<iostream> using namespace std; int main(){ int n,h,m; cin>>n>>h>>m; if(m%h!=0) cout<<n-((m/h)+1)<<endl; else cout<<n-(m/h)<<endl; return 0; }
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include<iostream> using namespace std; int main(){ int n,h,m; cin>>n>>h>>m; if(m%h!=0) cout<<n-((m/h)+1)<<endl; else cout<<n-(m/h)<<endl; return 0; }
相关推荐