PRIMPATT - Editorial

PROBLEM LINKS

Practice
Contest

DIFFICULTY

EASY

EXPLANATION

View solution here.

1 Like

Can someone provide better explanation for this problem? I am not able to comprehend this explanation. Thanks in advance :slight_smile: