02 2021 档案

摘要:1.前缀和 原题链接 这里的数据不需要两个数组,开两个就ME了,从左往右,从上往下直接滚动s数组就行 #include<iostream> #include<cstring> using namespace std; const int N=5050; int s[N][N]; int main() 阅读全文
posted @ 2021-02-19 15:20 Tsukinousag1 阅读(41) 评论(0) 推荐(0)
摘要:分形之城 原题链接 关于哪个对称,坐标两个一一对应就可以,x对应x,y对应y。 对称轴写错了QAQ,上下两个都是关于x轴做对称变换,关于y轴变号 #include<iostream> #include<cmath> using namespace std; typedef long long LL; 阅读全文
posted @ 2021-02-19 15:18 Tsukinousag1 阅读(56) 评论(0) 推荐(0)
摘要:约数之和 原题链接 #include<iostream> using namespace std; const int mod=9901; int power(int a,int b) { int res=1%mod; while(b) { if(b&1) res=res*a%mod; a=a*a% 阅读全文
posted @ 2021-02-16 20:26 Tsukinousag1 阅读(35) 评论(0) 推荐(0)
摘要:3.1费解的开关 原题链接 #include<iostream> #include<cstring> using namespace std; const int INF=1e6+10; char g[10][10]; void turn(int x,int y) { int dx[5]={0,-1 阅读全文
posted @ 2021-02-16 20:25 Tsukinousag1 阅读(86) 评论(0) 推荐(0)