#include
Using namespace STD.
Int main ()
{
Int n, a [101], ans=1;
The scanf (" % d ", & amp; N);
for(int i=1; I
The scanf (" % d ", & amp; A [I]);
}
If (a [1] <0)
{
For (int I=2; I
If (-a [1] & gt; A [I] & amp; & A [I] & gt; 0)
{
Ans++;
}
If (-a [1] & gt; A [I])
{
If (a [I] <0)
{
Ans++;
}
}
}
}
If (a [1] & gt; 0)
{
For (int I=2; I
If (abs (a) [1]
Ans++;
}
}
}
Printf (" % d ", ans);
return 0;
}
This is the source code, I wrote the official input data is:
5
4-3-10-20 to 22
The official output is 3
And I use the dev output is 2, then system for wrong... confused