Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5235 刘芃伽 07苹果和虫子 C++ Accepted 0 MS 264 KB 206 2024-11-09 10:08:52

Tests(10/10):


Code:

# include<iostream> using namespace std; int main() { int n,m,x,y; cin>>n>>x>>y; m=y/x; if(y%x!=0) m+=1; if(n-m<0){cout<<'0'<<endl;} else{cout<<n-m<<endl;} return 0; }