Skip to content

Commit

Permalink
Update 1434.Number-of-Ways-to-Wear-Different-Hats-to-Each-Other.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wisdompeak authored May 5, 2020
1 parent 21ebae8 commit e12a1b0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ class Solution {

vector<long>dp(1<<n, 0);
dp[0] = 1;
for (int p: Map[1])
dp[1<<p] = 1;
long M = 1e9+7;

for (int i=2; i<=40; i++)
for (int i=1; i<=40; i++)
{
auto dp2=dp;

Expand Down

0 comments on commit e12a1b0

Please sign in to comment.