From b48e2c46a634b7fde320625e93cfdbb9d352318b Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sat, 23 Nov 2024 11:23:12 +0800 Subject: [PATCH] update --- src/P8865/P8865.cpp | 10 +++++----- src/P8865/plant/plant1.in | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/P8865/P8865.cpp b/src/P8865/P8865.cpp index ef9dac5..0667fbf 100644 --- a/src/P8865/P8865.cpp +++ b/src/P8865/P8865.cpp @@ -84,18 +84,18 @@ int main(){ cin>>n>>m>>c>>f; totc=0; totf=0; - // pt(n,m,c,f); + pt(n,m,c,f); for(ll i{1};i<=n;i++){ cin>>s; for(ll j{1};j<=m;j++){ g[i][j]=s[j-1]-'0'; - // pt(g[i][j]); + pt(g[i][j]); } } // look right for(ll i{1};i<=n;i++){ - // tor[i][m+1]=0; + tor[i][m+1]=0; for(ll j{m};j>=0;j--){ if(g[i][j]){ tor[i][j]=0; @@ -135,14 +135,14 @@ int main(){ } } } - // pnm(tod); + pnm(tod); for(ll j{1};j=2&&tou[i][j]>=3 ){ - // cout<0){ totf = (totf+(((ptor[i-1][j]*(tor[i][j]-1))%mod)*(tod[i][j]-1))%mod)%mod; diff --git a/src/P8865/plant/plant1.in b/src/P8865/plant/plant1.in index 2e2436b..aee3adb 100644 --- a/src/P8865/plant/plant1.in +++ b/src/P8865/plant/plant1.in @@ -9,7 +9,6 @@ 010 000 000 -1 0 6 6 1 1 000010 011000