摘要:
https://www.luogu.com.cn/problem/P1083 ac代码: #include<iostream> #include<cstring> using namespace std; const int maxn=1e6+5; int n,m; int room[maxn],d 阅读全文
摘要:
思路: 用二维前缀统计每个像素对该点的贡献,对二维前缀进行维护,删除重复值 AC代码 #include <iostream> #define ll long long using namespace std; ll a,b,n,m,Max=0; bool img[3845][2165]; int d 阅读全文
摘要:
Matrix Power Series Description Given a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak. Input The input contains exact 阅读全文
摘要:
①递归实现 #include<iostream> #include<cstring> #define ll long long using namespace std; int dp[15][10],digit[15]; void init(){ memset(dp,0,sizeof(dp)); d 阅读全文