#include<iostream>
using namespace std;
int main()
{
int c[100];
int count;
int u=0;
int n,a,b;
while(cin>>n>>a>>b)
{
if(n<=0||a<=0||b<=0||n>=101)
break;
int w=(a>=b)? b:a;
if(n%2==0)
{
int q=n/2;
if(w>=q)
count=1;
else
{
int i=q/w;
int j=q%w;
if(j==0)
count=i*2-1;
else
count=i*2+1;
}
c[u++]=count;
}
else
c[u++]=0;
}
for(int j=0;j<u;j++)
{
if(c[j]==0)
cout<<"NO"<<endl;
else
cout<<c[j]<<endl;
}
return 0;
}
这么写为啥总出现runtime error啊
runtime error怎么解决啊