#include #include #include using namespace std; int main(){ long long int m,k,h; long long int sum=0; scanf("%lld %lld %lld",&m,&k,&h); int *steps=new int[m]; for(int i=0;i insightSteps; for(long long int i=0;i2147483647?2147483647:highest; auto lb=lower_bound(insightSteps.begin(),insightSteps.end(),lowest); auto ub=upper_bound(insightSteps.begin(),insightSteps.end(),highest); sum+=ub-lb; } printf("%lld\n",sum); delete[] steps; return 0; }