eolymp
bolt
Try our new interface for solving problems
Problems

Parallelogram

published at 11/6/23, 1:23:04 pm

a, b, c, d при тестах могут принимать значений с плавающей точкой!

published at 1/8/24, 3:14:33 pm

a,b,c,d = map(float,input().split()) if (a==b and c==d) or (a==d and b==c) or (c==a and d == b): print("YES") else: print("NO")

published at 1/12/24, 2:52:22 pm

include <bits/stdc++.h>

using namespace std; int main() { double a , b , c , d; cin>>a>>b>>c>>d;

if(a == b and c == d)
{
    cout<<"YES";
}

else if(a == c and b == d)
{
    cout<<"YES";
}

else if(a == d and b == c)
{
    cout<<"YES";
}

else
{
    cout<<"NO";
}

}

published at 1/13/24, 8:04:15 pm

include <bits/stdc++.h>

using namespace std; int main() { iosbase::syncwith_stdio(0); cin.tie(0); double a,b,c,d; cin>>a>>b>>c>>d; if(a==c && b==d){ cout<<"YES"; } else if(a==b && d==c){ cout<<"YES"; } else if(a==d && b==c){ cout<<"YES"; } else{ cout<<"NO"; }

     return 0;

}