diff --git a/flowers/flowers-tutorial.pdf b/flowers/flowers-tutorial.pdf index 6c580ee..ffbfc9c 100644 Binary files a/flowers/flowers-tutorial.pdf and b/flowers/flowers-tutorial.pdf differ diff --git a/flowers/flowers.pdf b/flowers/flowers.pdf index 06c6e3c..2eaadf4 100644 Binary files a/flowers/flowers.pdf and b/flowers/flowers.pdf differ diff --git a/flowers/src/alternative_ac.cpp b/flowers/src/alternative_ac.cpp index 362580e..5fc16b8 100644 --- a/flowers/src/alternative_ac.cpp +++ b/flowers/src/alternative_ac.cpp @@ -33,11 +33,7 @@ ll flowers(int last, int count = 1, int size = 1) { int main(){ cin >> N >> M; - for (int i = 0; i <= 10000; i++) { - for (int j = 0; j <= 1000; j++) { - memo[i][j][0] = memo[i][j][1] = 0; - } - } + memset(memo, 0, sizeof(memo)); cout << (flowers(0) + flowers(1)) % MOD << endl;