fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int TEN = 10;
  5. const int X = 77;
  6.  
  7. int main() {
  8. int n, res;
  9. cin >>n;
  10. if ((n % (TEN * TEN) == X) || ((n / TEN) % (TEN * TEN) == X) || (n / (TEN * TEN) == X)) {
  11. cout << "DA";
  12. } else {
  13. cout << "NU";
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5292KB
stdin
7777
stdout
DA