## Problem – Chef and Instant Noodles CodeChef Solution

Chef has invented 1-minute Instant Noodles. As the name suggests, each packet takes exactly 1 minute to cook.

Chef’s restaurant has *X* stoves and only 1 packet can be cooked in a single pan.

How many customers can Chef serve in *Y* minutes if each customer orders exactly 1 packet of noodles?

### Input Format

- The first and only line of input contains two space-separated integers
*X* and *Y* — the number of stoves and the number of minutes, respectively.

### Output Format

- Print a single integer, the
**maximum** number of customers Chef can serve in *Y* minutes

### Constraints

### Sample 1:

**Input**: 3 7
**Output**: 21

### Explanation:

Chef cooks for *Y*=7 minutes and can cook *X*=3 packets per minute, one on each stove.

So, the total number of packets that can be cooked is *X*⋅*Y*=3⋅7=21.

Each person orders one packet, so the maximum number of customers that can be served is 21.

### Sample 2:

**Input**: 7 8
**Output**: 56

### Explanation:

Chef cooks for *Y*=8 minutes and can cook *X*=7 packets per minute, one on each stove.

So, the total number of packets that can be cooked is *X*⋅*Y*=7⋅8=56.

Each person orders one packet, so the maximum number of customers that can be served is 56.

### Chef and Instant Noodles CodeChef Solution in C++17

```
#include<bits/stdc++.h>
using namespace std;
#define int long long int
int32_t main()
{
int x,y;
cin>>x>>y;
cout<<x*y<<endl;
}
```

### Chef and Instant Noodles CodeChef Solution in Pyth 3

```
x,y = list(map(int,input().split()))
print(x*y)
```

### Chef and Instant Noodles CodeChef Solution in Java

```
import java.util.*;
import java.lang.*;
import java.io.*;
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc=new Scanner(System.in);
int x=sc.nextInt();
int y=sc.nextInt();
System.out.println(x*y);
}
}
```

##### Chef and Instant Noodles CodeChef Solution Review:

In our experience, we suggest you solve this Chef and Instant Noodles 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 Chef and Instant Noodles CodeChef Solution

**Find on CodeChef**

##### Conclusion:

I hope this Chef and Instant Noodles 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**