A day at Canteen
All submissions for this problem are available.
A new Canteen is opened in IIST Campus. Since today is the opening day, the canteen owner is giving an offer, in which every student must purchase 5 items each
each of cost <1,000. The offer is, student can pay any amount, but the amount paid is the result of four binary operations ( +, - , *, / ) between the cost of five
items. Now your taks is to help the student save his money.
NOTE: No binary operator is to be repeated.
Input consists of five integers each seperated by spaces.
Your output must contain an ineger satisfying the above conditions
Input: 2 3 4 5 6 Output: 1
|Time Limit:||0.193662 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, JAVA, GO|
Fetching successful submissions