Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int n,kk1 = 0, kk2 = 0;
- scanf("%d", &n);
- for (int i = 0; i < n; i++) {
- int num;
- scanf("%d", &num);
- if (num%2 == 0) kk1++;
- else kk2++;
- }
- ll res = kk1*kk2;
- printf("%lld", res);
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement