正文
增加 3 行删除 3 行
99 行未改动10010110210310410510610710810 行未改动1191201211221231241251261274 行未改动13213313413513613799 行未改动}const LL N=505,mod=998244353;LL n,a[N],f[N][N],ans;/*f[i][j]表示前i个位置已经确定,且选择x的最小值为j*/int main(){n=read();10 行未改动{if(a[k]<x){pos=k;break;}}if(!pos) f[i][x]++;else4 行未改动}for(int i=1;i<=501;i++) ans=(ans+f[n][i])%mod;print(ans);return 0;}```99 行未改动10010110210310410510610710810 行未改动1191201211221231241251261274 行未改动13213313413513613799 行未改动}const LL N=505,mod=998244353;LL n,a[N],f[N][N],ans;/*f[i][j]表示前i个位置已经确定,且选择x的最小值为j*/int main(){n=read();10 行未改动{if(a[k]<x){pos=k;break;}}if(!pos) f[i][x]++;else4 行未改动}for(int i=1;i<=501;i++) ans=(ans+f[n][i])%mod;print(ans);return 0;}```