Skip to content

Commit c14cf12

Browse files
authored
Update 5.java
1 parent 17932c1 commit c14cf12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

7/5.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void main(String[] args) {
3131

3232
// M(손님이 확인 요청한 부품 개수)
3333
int m = sc.nextInt();
34-
int[] targets = new int[n];
34+
int[] targets = new int[m];
3535
for (int i = 0; i < m; i++) {
3636
targets[i] = sc.nextInt();
3737
}
@@ -49,4 +49,4 @@ public static void main(String[] args) {
4949
}
5050
}
5151

52-
}
52+
}

0 commit comments

Comments
 (0)