| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76971 | 高楷伦 | 07苹果和虫子 | C++ | Accepted | 0 MS | 272 KB | 250 | 2024-06-07 17:15:24 |
# include<iostream> # include<cstdio> # include<iomanip> using namespace std; int main(){ int n,x,y,D; cin>>n>>x>>y; if(y%x==0){ D=n-y/x; } else{ D=n-y/x-1; } if(D<=0) cout<<0; else cout<<D; return 0; }