fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long a, b, c, d, e;
  6. cin >> a >> b >> c >> d >> e;
  7.  
  8. if (a==b || a==c || a==d || a==e ||b==c || b==d || b==e ||c==d || c==e || d==e) {
  9. cout << "NO";
  10. } else {
  11. cout << "YES";
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5336KB
stdin
Standard input is empty
stdout
YES