Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5493 | 邱一涵 | 07苹果和虫子 | C++ | Accepted | 0 MS | 256 KB | 305 | 2024-11-16 20:35:27 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int n,x,y,nun; cin>>n>>x>>y; nun=n-y/x; if(y%x!=0){ nun--; } if(nun<=0){ cout<<0<<endl; } else{ cout<<nun<<endl; } return 0; }