Задачі
Поза інтервалом
elnuru kot
elnuru kot
include<bits/stdc++.h>
using namespace std;
int main () {
int a,b,x;
cin>>x>>a>>b;
if((a>=x and b<=x) or (a<=x and b>=x))
cout<<"IN";
else
cout<<"OUT";
}
include<bits/stdc++.h>
using namespace std;
int main () {
int a,b,x;
cin>>x>>a>>b;
if((a>=x and b<=x) or (a<=x and b>=x))
cout<<"IN";
else
cout<<"OUT";
}