跳到正文

个人记录

12

中国飞鱼约 1 分钟
原文
文章信息与版本

文章信息

发布
2020年1月2日
收录
2025年12月21日
更新
2026年11月17日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#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++)
    }
}
原文
存档评论1 条抓取于