摘要: 内涵线段树的数组与指针实现,感谢zay大佬,Orz 扶咕咕 阅读全文
posted @ 2020-07-05 17:04 柠月与梦 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 此题思想 根据初始点的位置,向上向右扩展出一个范围,然后进行递推即可。 #include<cstdio> #include<iostream> using namespace std; int main() { int i, a[10001][4], n, x, y, f = -1; cin >> 阅读全文
posted @ 2020-07-05 16:17 柠月与梦 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 此题用滚动数组即可 #include <cstdio> #include <cstring> using namespace std; typedef unsigned long long ull; ull f[50][50]; int a[12] = {0, -1, -2, -2, -1, 1, 阅读全文
posted @ 2020-07-05 16:14 柠月与梦 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 此题过水,不写解析。 #include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b; c=a+b; cout<<c; return 0; } 阅读全文
posted @ 2020-07-05 16:05 柠月与梦 阅读(128) 评论(0) 推荐(0) 编辑