knightnemo commited on
Commit
e0b2090
·
verified ·
1 Parent(s): 8e11771

Upload code_segments/segment_152.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. code_segments/segment_152.txt +16 -0
code_segments/segment_152.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Kmes has written three integers $a$, $b$ and $c$ in order to remember that he has to give Noobish_Monk $a \times b \times c$ bananas.
2
+
3
+ Noobish_Monk has found these integers and decided to do the following at most $5$ times:
4
+
5
+ * pick one of these integers; * increase it by $1$.
6
+
7
+ For example, if $a = 2$, $b = 3$ and $c = 4$, then one can increase $a$ three times by one and increase $b$ two times. After that $a = 5$, $b = 5$, $c = 4$. Then the total number of bananas will be $5 \times 5 \times 4 = 100$.
8
+
9
+ What is the maximum value of $a \times b \times c$ Noobish_Monk can achieve with these operations?
10
+
11
+ Each test contains multiple test cases. The first line of input contains a single integer $t$ ($1 \le t \le 1000$) — the number of test cases. The description of the test cases follows.
12
+
13
+ The first and only line of each test case contains three integers $a$, $b$ and $c$ ($1 \le a, b, c \le 10$) — Kmes's integers.
14
+
15
+ For each test case, output a single integer — the maximum amount of bananas Noobish_Monk can get.
16
+