摘要: 洛谷P3373 【模板】线段树 2 题目描述 如题,已知一个数列,你需要进行下面两种操作: 1.将某区间每一个数加上x 2.将某区间每一个数乘上x 3.求出某区间每一个数的和 输入输出格式 输入格式: 第一行包含三个整数N、M、P,分别表示该数列数字的个数、操作的总个数和模数。 第二行包含N个用空格 阅读全文
posted @ 2017-10-26 18:33 氟铷氡氦 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 洛谷P3372 【模板】线段树 1 题目描述 如题,已知一个数列,你需要进行下面两种操作: 1.将某区间每一个数加上x 2.求出某区间每一个数的和 输入输出格式 输入格式: 第一行包含两个整数N、M,分别表示该数列数字的个数和操作的总个数。 第二行包含N个用空格分隔的整数,其中第i个数字表示数列第i 阅读全文
posted @ 2017-10-26 15:25 氟铷氡氦 阅读(492) 评论(0) 推荐(0) 编辑
摘要: D. LCIS time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output This problem differs from one whi 阅读全文
posted @ 2017-10-24 20:54 氟铷氡氦 阅读(222) 评论(0) 推荐(0) 编辑
摘要: C. Digital Root time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Not long ago Billy came 阅读全文
posted @ 2017-10-24 20:26 氟铷氡氦 阅读(175) 评论(0) 推荐(0) 编辑
摘要: E. Interesting Graph and Apples time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output Hexadecima 阅读全文
posted @ 2017-10-24 17:34 氟铷氡氦 阅读(210) 评论(0) 推荐(0) 编辑
摘要: D. How many trees? time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output D. How many trees? time 阅读全文
posted @ 2017-10-24 15:26 氟铷氡氦 阅读(154) 评论(0) 推荐(0) 编辑
摘要: P2742 [USACO5.1]圈奶牛Fencing the Cows 题目描述 农夫约翰想要建造一个围栏用来围住他的奶牛,可是他资金匮乏。他建造的围栏必须包括他的奶牛喜欢吃草的所有地点。对于给出的这些地点的坐标,计算最短的能够围住这些点的围栏的长度。 输入输出格式 输入格式: 输入数据的第一行包括 阅读全文
posted @ 2017-10-10 16:23 氟铷氡氦 阅读(241) 评论(0) 推荐(0) 编辑
摘要: C. Ancient Berland Circus time limit per test 2 seconds memory limit per test 64 megabytes input standard input output standard output Nowadays all ci 阅读全文
posted @ 2017-09-25 18:35 氟铷氡氦 阅读(207) 评论(0) 推荐(0) 编辑
摘要: B. Spreadsheets time limit per test 10 seconds memory limit per test 64 megabytes input standard input output standard output In the popular spreadshe 阅读全文
posted @ 2017-09-25 18:00 氟铷氡氦 阅读(201) 评论(0) 推荐(0) 编辑
摘要: A. Theatre Square time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Theatre Square time 阅读全文
posted @ 2017-09-25 15:59 氟铷氡氦 阅读(115) 评论(0) 推荐(0) 编辑