Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
113341 | 常钰杰 | 07苹果和虫子 | C++ | Wrong Answer | 1 MS | 268 KB | 296 | 2025-03-15 17:54:24 |
#include<bits/stdc++.h> using namespace std; int main() { int n,x,y,h; cin>>n>>x>>y; if(y%x==0) { h=y/x; } else { h=y/x-1; } if(h>0) { cout<<n-h; } else { cout<<0; } return 0; }
------Input------
459 2 1
------Answer-----
458
------Your output-----
0