CHEFGIFT - Editorial

PROBLEM LINKS

Practice
Contest

DIFFICULTY

MEDIUM

EXPLANATION

You can view the editorial for this problem here.

SETTER’S SOLUTION

Can be found here.

TESTER’S SOLUTION

Can be found here.

One of the worst problem statements ever