Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98861 | 唐诗阳 | 07苹果和虫子 | C++ | Compile Error | 0 MS | 0 KB | 335 | 2024-11-23 16:38:51 |
#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; } if(z<0){ z=0 } cout<<z; return 0; }
Main.cc: In function 'int main()': Main.cc:15:5: error: expected ';' before '}' token } ^