This commit is contained in:
Zengtudor 2024-10-08 11:08:17 +08:00
parent 28220c49d2
commit dcb7a56d7e

View File

@ -18,9 +18,10 @@ int main(){
dp[0][0] = true; dp[0][0] = true;
for(const size_t j:range((size_t)1,p.size()+1)){ for(const size_t j:range((size_t)1,p.size()+1)){
if(get_p(j)=='*'){ if(get_p(j)!='*'){
dp[0][j] = dp[0][j-1]; break;
} }
dp[0][j]=true;
} }
for(const size_t i:range((size_t)1,s.size()+1)){ for(const size_t i:range((size_t)1,s.size()+1)){