版本比较
题解:CF1988F Heartbeat
正文
增加 2 行删除 2 行
81 行未改动828384858686878889909192939495959697989926 行未改动81 行未改动#include<cstring>#include<cmath>#define ll long long#define ni i&1#define li (i-1)&1 #define li (i-1)&1using namespace std;const int MN=705;const int mod=998244353;ll n,ans,a[MN],b[MN],c[MN],C[MN][MN],f[2][MN][MN],u[MN][MN],v[MN][MN],w[MN][MN];void write(ll n){if(n<0){putchar('-');write(-n);return;}if(n>9)write(n/10);putchar(n%10+'0');}ll read(){ll x=0,f=1;char ch=getchar();while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}while(ch>='0'&&ch<='9'){x=(x<<1)+(x<<3)+(ch^48);ch=getchar();}return x*f;}int main(){// freopen("heart.in","r",stdin);// freopen("heart.out","w",stdout); // freopen("heart.out","w",stdout); n=read(); for(int i=1; i<=n; i++) a[i]=read(); for(int i=1; i<=n; i++) b[i]=read(); for(int i=0; i<n; i++) c[i]=read();26 行未改动