Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, z[11], q=1, d;
- cin>>n;
- for(int i=0;i<n;i++)
- {
- cin>>z[i];
- }
- for(int i=0;i<n;i++)
- {
- d=i;
- for(int l=0;l<n-1;l++)
- {
- if(z[d]!=z[d+q])
- {q++;}else{cout<<"NE"<<endl;return 0;}
- }
- }
- cout<<"TAIP"<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement