| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144953 | 徐启航 | 07苹果和虫子 | C++ | Accepted | 0 MS | 276 KB | 436 | 2026-01-24 19:47:27 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<ctime> #include<cstdlib> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,x,y,m; cin>>n>>x>>y; if(y%x!=0) m=y/x+1; else if(y%x==0) m=y/x; if(n-m>=0)cout<<n-m<<endl; else cout<<'0'<<endl; }