Https://ide.codingblocks.com/#/s/29786

https://ide.codingblocks.com/#/s/29786

Question is modulo sum in Number Theory Basics -> What is wrong?

please provide the Problem link??

https://hack.codingblocks.com/contests/c/259/754

You are checking whether any cumalative sum with frequency>1 exists or not. But that does not guarantees an answer.
For eg:
INPUT:
4 5
1 7 6 8
EXPECTED OUTPUT:
YES
OUTPUT:
NO