Advertisement
Guest User

292

a guest
Feb 26th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int n;
  5. long long m,v[103];
  6. int main()
  7. {
  8. cin>>n;
  9. for(int i=1; i<n; i++)
  10. cin>>v[i];
  11. cin>>m;
  12. for(int i=1; i<n; i++)
  13. if(v[i]%m!=0)
  14. {
  15. cout<<"NU";
  16. return 0;
  17. }
  18. cout<<"DA";
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement