| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 60905 | 申明宇 | 07苹果和虫子 | C++ | Accepted | 1 MS | 276 KB | 259 | 2023-11-21 20:47:49 |
#include<iostream> #include<iomanip> using namespace std; int main() { int n,x,y,d; cin>>n>>x>>y; if(y%x>0){ d=n-y/x-1; } else{ d=n-y/x; } if(d>0){ cout<<d; } else{ cout<<0; } return 0; }