33
33
<p ><strong >示例 1:</strong ></p >
34
34
35
35
<pre ><strong >输入:</strong >orders = [[" ; David" ; ," ; 3" ; ," ; Ceviche" ; ],[" ; Corina" ; ," ; 10" ; ," ; Beef Burrito" ; ],[" ; David" ; ," ; 3" ; ," ; Fried Chicken" ; ],[" ; Carla" ; ," ; 5" ; ," ; Water" ; ],[" ; Carla" ; ," ; 5" ; ," ; Ceviche" ; ],[" ; Rous" ; ," ; 3" ; ," ; Ceviche" ; ]]
36
- <strong >输出:</strong >[[" ; Table" ; ," ; Beef Burrito" ; ," ; Ceviche" ; ," ; Fried Chicken" ; ," ; Water" ; ],[" ; 3" ; ," ; 0" ; ," ; 2" ; ," ; 1" ; ," ; 0" ; ],[" ; 5" ; ," ; 0" ; ," ; 1" ; ," ; 0" ; ," ; 1" ; ],[" ; 10" ; ," ; 1" ; ," ; 0" ; ," ; 0" ; ," ; 0" ; ]]
36
+ <strong >输出:</strong >[[" ; Table" ; ," ; Beef Burrito" ; ," ; Ceviche" ; ," ; Fried Chicken" ; ," ; Water" ; ],[" ; 3" ; ," ; 0" ; ," ; 2" ; ," ; 1" ; ," ; 0" ; ],[" ; 5" ; ," ; 0" ; ," ; 1" ; ," ; 0" ; ," ; 1" ; ],[" ; 10" ; ," ; 1" ; ," ; 0" ; ," ; 0" ; ," ; 0" ; ]]
37
37
<strong >解释:
38
38
</strong >点菜展示表如下所示:
39
39
<strong >Table,Beef Burrito,Ceviche,Fried Chicken,Water</strong >
@@ -42,13 +42,13 @@ tags:
42
42
10 ,1 ,0 ,0 ,0
43
43
对于餐桌 3:David 点了 " ; Ceviche" ; 和 " ; Fried Chicken" ; ,而 Rous 点了 " ; Ceviche" ;
44
44
而餐桌 5:Carla 点了 " ; Water" ; 和 " ; Ceviche" ;
45
- 餐桌 10:Corina 点了 " ; Beef Burrito" ;
45
+ 餐桌 10:Corina 点了 " ; Beef Burrito" ;
46
46
</pre >
47
47
48
48
<p ><strong >示例 2:</strong ></p >
49
49
50
50
<pre ><strong >输入:</strong >orders = [[" ; James" ; ," ; 12" ; ," ; Fried Chicken" ; ],[" ; Ratesh" ; ," ; 12" ; ," ; Fried Chicken" ; ],[" ; Amadeus" ; ," ; 12" ; ," ; Fried Chicken" ; ],[" ; Adam" ; ," ; 1" ; ," ; Canadian Waffles" ; ],[" ; Brianna" ; ," ; 1" ; ," ; Canadian Waffles" ; ]]
51
- <strong >输出:</strong >[[" ; Table" ; ," ; Canadian Waffles" ; ," ; Fried Chicken" ; ],[" ; 1" ; ," ; 2" ; ," ; 0" ; ],[" ; 12" ; ," ; 0" ; ," ; 3" ; ]]
51
+ <strong >输出:</strong >[[" ; Table" ; ," ; Canadian Waffles" ; ," ; Fried Chicken" ; ],[" ; 1" ; ," ; 2" ; ," ; 0" ; ],[" ; 12" ; ," ; 0" ; ," ; 3" ; ]]
52
52
<strong >解释:</strong >
53
53
对于餐桌 1:Adam 和 Brianna 都点了 " ; Canadian Waffles" ;
54
54
而餐桌 12:James, Ratesh 和 Amadeus 都点了 " ; Fried Chicken" ;
0 commit comments