Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115953 | 常钰杰 | 07苹果和虫子 | C++ | Accepted | 1 MS | 272 KB | 296 | 2025-04-05 17:47:47 |
#include<iostream> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c; if(c%b==0) { d=a-(c/b); } else { d=a-(c/b)-1; } if(d>=0) { cout<<d; } else { cout<<"0"; } return 0; }