Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int g, g1, g2, g3, g4;
- cin >> g;
- g1 = g%10;
- g/=10;
- g2 = g%10;
- g/=10;
- g3 = g%10;
- g/=10;
- g4 = g%10;
- g/=10;
- if(g1==g2 or g1==g3 or g2==g4 or g2==g3 or g4==g1 or g3==g4) cout << "DA";
- else cout << "NE";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment