Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
99831 | 谢佳辰 | 07苹果和虫子 | C++ | Wrong Answer | 0 MS | 272 KB | 243 | 2024-11-30 18:19:47 |
#include <iostream> using namespace std; int main(){ int n,y,x,a; cin>>n>>y>>x; a=n-y/x; if(y%x!=0){ a--; } if(a<=0){ cout<<0<<endl; }else{ cout<<a<<endl; } return 0; }
------Input------
389 1 24
------Answer-----
365
------Your output-----
388