Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Email Reminders CodeChef Solution

Problem – Email Reminders CodeChef Solution

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?

Input Format

  • The first and only line of input will contain a single line containing two space-separated integers N (the total number of users) and U (the number of users who don’t want to receive contest reminders).

Output Format

Output in a single line, the number of users MoEngage has to send an email to.


  • 1≤U<N≤10^5

Sample 1:

Input: 100 7
Output: 93


Out of 100 users, 7 do not want to receive reminders. Hence, MoEngage needs to send email to 93 users.

Sample 2:

Input: 4456 342
Output: 4114


Out of 4456 users, 342 do not want to receive reminders. Hence MoEngage needs to send email to 4114 users.

Email Reminders CodeChef Solution in C++17

#include <iostream>
using namespace std;

int main() {
	int n,u;
	return 0;

Email Reminders CodeChef Solution in Pyth 3


Email Reminders CodeChef Solution in Java

import java.util.*;
import java.lang.*;

class Codechef
	public static void main (String[] args) throws java.lang.Exception
		Scanner sc=new Scanner(;
		int u=sc.nextInt();
		int n=sc.nextInt();
Email Reminders CodeChef Solution Review:

In our experience, we suggest you solve this Email Reminders CodeChef Solution and gain some new skills from Professionals completely free and we assure you will be worth it.

If you are stuck anywhere between any coding problem, just visit Queslers to get the Email Reminders CodeChef Solution

Find on CodeChef


I hope this Email Reminders CodeChef Solution would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.

This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.

Keep Learning!

More Coding Solutions >>

LeetCode Solutions

Hacker Rank Solutions

CodeChef Solutions

Leave a Reply

Your email address will not be published. Required fields are marked *