update
This commit is contained in:
parent
d19837b878
commit
b428e1c679
@ -14,6 +14,13 @@ int main(){
|
||||
|
||||
dp[0][0] = true;
|
||||
|
||||
for(const size_t j:range((size_t)1,p.size())){
|
||||
const auto get_p = [](const size_t n)->char{return p[n-1];};
|
||||
if(get_p(j)=='*'){
|
||||
dp[0][j] = dp[0][j-1];
|
||||
}
|
||||
}
|
||||
|
||||
for(const size_t i:range((size_t)1,s.size()+1)){
|
||||
for(const size_t j:range((size_t)1,p.size()+1)){
|
||||
const auto get_p = [](const size_t n)->char{return p[n-1];};
|
||||
|
Loading…
Reference in New Issue
Block a user