質問編集履歴

1

classをPriceとCountに分けましたが駄目でした。

2016/01/22 11:36

投稿

coffeee
coffeee

スコア19

test CHANGED
File without changes
test CHANGED
@@ -60,13 +60,15 @@
60
60
 
61
61
  int[] price;
62
62
 
63
- int[] count;
64
-
65
63
  Price(int[] p){
66
64
 
67
65
  price=p;
68
66
 
69
67
  }
68
+
69
+ class Count{
70
+
71
+ int[] count;
70
72
 
71
73
  Count(int[] c){
72
74
 
@@ -108,7 +110,7 @@
108
110
 
109
111
  p.getSum();
110
112
 
111
-
113
+
112
114
 
113
115
  int[] type={3,2,10,1};
114
116