fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c, d;
  6. cin >> a >> b >> c >> d;
  7. if (!(a == b && b == c && c == d)) {
  8. cout << "NU";
  9. } else {
  10. cout << "DA";
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5308KB
stdin
1 1 3 3
stdout
NU