EMAILREM Editorial

PROBLEM LINK:

Contest Division 1
Contest Division 2
Contest Division 3
Contest Division 4

Setter: Nandeesh Gupta
Tester: Harris Leung
Editorialist: Jakub Safin, Pratiyush Mishra

DIFFICULTY:

Cakewalk

PREREQUISITES:

None

PROBLEM:

Moengage helps the Chef send email reminders about rated contests to the participants.

There are a total of N participants on Chef’s platform, and U of them have told Chef not to send emails to them.

If so, how many participants should Moengage send the contest emails to?

EXPLANATION:

For each test case, there are 2 integer inputs N and U denoting the total number of participants on the Chef’s platform and the number of users who have told Chef not to send emails.

Thus, it is clear that (N-U) participants should receive emails from the platform.

TIME COMPLEXITY:

O(1) for each test case.

SOLUTION:

Editorialist’s Solution
Tester’s Solution