摘要:
直接暴力区间dp,可以出来结果只是时间需要长点,需要16秒 结果:2653631372 #include<iostream> #include<cstring> using namespace std; typedef long long ll; ll f[2022][2022]; int main 阅读全文
摘要:
#include<iostream> using namespace std; #define rep(i,a,b) for(int i = a;i<=b;i++) #define per(i,a,b) for(int i = a;i>=b;i--) char mp[35][55]; int mai 阅读全文
摘要:
#include<iostream> #include<queue> #include<cstring> using namespace std; const int maxn = 10000005; int gcd(int a, int b) { if (b == 0)return a; else 阅读全文