摘要: #include #include #include using namespace std; class Seqlist{ public: int last; int sz; int *data; Seqlist(int _sz=0){ ///构造函数 data = new int[_sz]; last = -1; ... 阅读全文
posted @ 2016-09-19 23:32 Kurokey 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 题目链接:传送门 题目大意:有50种动物,给你n*n的矩阵,m次操作,P代表加入操作,在左上角 x1,y1 到右下角 x2,y2,的矩形范围内加入 种类为x,数量为y的动物。 Q代表询问操作,在左上角 x1,y1 到右下角 x2,y2,对于1~50种动物,如果数量之和为偶数,输出1,否则输出2。 题 阅读全文
posted @ 2016-09-19 23:29 Kurokey 阅读(834) 评论(0) 推荐(0) 编辑