摘要:
[树状数组]校门外的树 题目描述 校门外有很多树,有苹果树,香蕉树,有会扔石头的,有可以吃掉补充体力的…… 如今学校决定在某个时刻在某一段种上一种树,保证任一时刻不会出现两段相同种类的树,现有两个操作: K =1,读入 l , r 表示在 l ~ r 之间种上的一种树 K =2,读入 l , r 表 阅读全文
摘要:
P1003: A Simple Problem with Integers 题目描述 You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation 阅读全文
摘要:
#include<stdio.h> #define MAXSIZE 1<<10 int ChessBoard[MAXSIZE][MAXSIZE]; void BoardCover(int tr, int tc, int dr, int dc, int size) { static int Tag = 阅读全文