Skip to content

Commit 8cb6556

Browse files
authored
Update 1.java
1 parent 4ff23bf commit 8cb6556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

3/1.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ public class Main {
33
public static void main(String[] args) {
44
int n = 1260;
55
int cnt = 0;
6-
int[] types = {500, 100, 50, 10};
6+
int[] coinTypes = {500, 100, 50, 10};
77

88
for (int i = 0; i < 4; i++) {
9-
int coin = types[i];
9+
int coin = coinTypes[i];
1010
cnt += n / coin;
1111
n %= coin;
1212
}

0 commit comments

Comments
 (0)