Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import"ios"
- int main() {
- int n,m,s=0,v;
- scanf("%d%d",&n,&m);
- while(n--)scanf("%d",&v),(s+=v)%=m;
- return printf(s?"NO":"YES"),0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement