We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff23bf commit 8cb6556Copy full SHA for 8cb6556
3/1.java
@@ -3,10 +3,10 @@ public class Main {
3
public static void main(String[] args) {
4
int n = 1260;
5
int cnt = 0;
6
- int[] types = {500, 100, 50, 10};
+ int[] coinTypes = {500, 100, 50, 10};
7
8
for (int i = 0; i < 4; i++) {
9
- int coin = types[i];
+ int coin = coinTypes[i];
10
cnt += n / coin;
11
n %= coin;
12
}
0 commit comments