Skip to content

Commit cccc00d

Browse files
committed
local
1 parent 312e84a commit cccc00d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

18-Programming-4kids/10_homework_09_answer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ using namespace std;
55

66
int main() {
77
const int N = 201; // Be careful. We need 201 values NOT 200
8-
int occurrence[N] = { 0 }, sequence[N], indx;
8+
int sequence[N], indx;
9+
10+
int occurrence[N * 10] = { 0 }; // possibly i-th value is much less than 10 * i
911

1012
cin >> indx;
1113
sequence[0] = 0;

0 commit comments

Comments
 (0)