Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98846 | 唐诗阳 | 07苹果和虫子 | C++ | Wrong Answer | 0 MS | 272 KB | 301 | 2024-11-23 16:14:34 |
#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; cin>>n>>x>>y; n=n-y/x; if(y%x>0){ n=n-1; } cout<<n; return 0; }
------Input------
5 1 12
------Answer-----
0
------Your output-----
-7