Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3899 吴承熹 07苹果和虫子 C++ Accepted 0 MS 252 KB 235 2024-07-18 15:34:20

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; }