Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98855 | 唐诗阳 | 07苹果和虫子 | C++ | Wrong Answer | 1 MS | 268 KB | 301 | 2024-11-23 16:32:24 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,x,y,z; cin>>n>>x>>y; z=n-y/x; if(y%x>0){ z=z-1; } cout<<z; return 0; }
------Input------
5 1 12
------Answer-----
0
------Your output-----
-7