12

· · 个人记录

#include<bits/stdc++.h>
using namespace std;
const int mod=998244353;
inline int re(){
    int x=0,w=1;char ch=getchar();
    while(ch<'0'||ch>'9'){if(ch=='-')w=-1;ch=getchar();}
    while(ch>='0'&&ch<='9')x=x*10+ch-'0',ch=getchar();
    return x*w;
}
int n,m,ans=1;
int a[105][2005],f[2005][2005];
int main(){
    n=re();m=re();
    for(int i=1;i<=n;i++){
        int sum=1;
        for(int j=1;j<=m;j++)
            sum=(sum+a[i][j]=re())%mod;
        ans=(1ll*ans*sum)%mod;a[i][m+1]=1;
    }
    for(int i=1;i<=n;i++){
        for(int j=1;j<=m+1;j++)
    }
}