Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114830 | 鲁博睿 | 07苹果和虫子 | C++ | Accepted | 1 MS | 280 KB | 228 | 2025-03-23 16:27:12 |
#include <bits/stdc++.h> ? using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c; if(c%b!=0){ d = c/b+1; } else{ d = c/b; } if(a>=d){ cout<<a-d; } else{ cout<<0; } return 0; }