Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
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: 3 7
Output: 21
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.
Input: 7 8
Output: 56
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.
#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;
}
x,y = list(map(int,input().split()))
print(x*y)
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);
}
}
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
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 >>