fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. bool hasSixDigits(const int &nr) {
  5. return (nr >= 100000 && nr <= 999999) || (nr >= -999999 && nr <= -100000);
  6. }
  7.  
  8. int main() {
  9. int n;
  10. cin >> n;
  11. if (hasSixDigits(n)) {
  12. cout << "DA";
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5288KB
stdin
1
stdout
Standard output is empty