Advertisement
999ms

Untitled

Apr 1st, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  1. #import"ios"
  2. int main() {  
  3.     int n,m,s=0,v;
  4.     scanf("%d%d",&n,&m);
  5.     while(n--)scanf("%d",&v),(s+=v)%=m;
  6.     return printf(s?"NO":"YES"),0;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement