Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5242 | 谢锦卓 | 07苹果和虫子 | C++ | Accepted | 0 MS | 268 KB | 224 | 2024-11-09 10:21:11 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ int n,x,y,m; cin>>n>>x>>y; if(y/x>=n) m=0; else{ m=(y%x==0)?(n-y/x):(n-y/x-1); } cout<<m<<endl; return 0; }