Skip to content

Commit 4ff23bf

Browse files
authored
Update 1.cpp
1 parent 5565dc9 commit 4ff23bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

3/1.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ using namespace std;
44

55
int n = 1260;
66
int cnt = 0;
7-
int types[4] = {500, 100, 50, 10};
7+
int coinTypes[4] = {500, 100, 50, 10};
88

99
int main() {
1010
for (int i = 0; i < 4; i++) {
11-
int coin = types[i];
11+
int coin = coinTypes[i];
1212
cnt += n / coin;
1313
n %= coin;
1414
}
1515
cout << cnt << '\n';
16-
}
16+
}

0 commit comments

Comments
 (0)