摘要: "kuangbin 基础dp][POJ 1015] [Jury Compromise" 题目 In Frobnia, a far away country, the verdicts in court trials are determined by a jury consisting of mem 阅读全文
posted @ 2020-02-14 21:51 mizersy 阅读(180) 评论(0) 推荐(0) 编辑
摘要: [kuangbin]线段树 2019.07.08 1. "HDU 1166" "敌兵布阵" 1.1题目描述 ​ 单点修改+区间查询 1.2代码 2. "HDU 1754" "I Hate It" 2.1 题目描述 ​ 单点修改+区间查询 2.2 代码 3.POJ 3468 "A Simple Pro 阅读全文
posted @ 2020-02-11 20:06 mizersy 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the ho 阅读全文
posted @ 2020-02-09 18:43 mizersy 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目名称:文件目录清单(Dir) 程序设计要求: 1.显示指定目录下的文件清单,包括文件名、扩展名、文件大小(十进制数表示)、最后修改日期和时间等项内容(不显示属性为隐含的文件,各项内容之间以制表符的位置起始); 2.根据参数确定显示方式(W:紧凑显示,每个文件只显示文件的文件名及扩展名;P:显示文 阅读全文
posted @ 2020-02-05 12:00 mizersy 阅读(1363) 评论(0) 推荐(0) 编辑
摘要: 总时间限制: 2000ms 内存限制: 65536kB描述The Department of National Defence (DND) wishes to connect several northern outposts by a wireless network. Two different 阅读全文
posted @ 2020-02-03 19:23 mizersy 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 总时间限制: 10000ms 内存限制: 65536kB描述An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with 阅读全文
posted @ 2020-01-25 19:38 mizersy 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 总时间限制: 1000ms 内存限制: 65536kB描述The cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 <= N <= 10,000) weeks, 阅读全文
posted @ 2020-01-25 17:22 mizersy 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 一个迷宫由R行C列格子组成,有的格子里有障碍物,不能走;有的格子是空地,可以走。给定一个迷宫,求从左上角走到右下角最少需要走多少步(数据保证一定能走到)。只能在水平方向或垂直方向走,不能斜着走。Input第一行是两个整数,R和C,代表迷宫的长和宽。( 1<= R,C <= 40)接下来是R行,每行C 阅读全文
posted @ 2020-01-24 14:26 mizersy 阅读(755) 评论(0) 推荐(0) 编辑
摘要: 上周末,M.A. Ya教授对古老的玛雅有了一个重大发现。从一个古老的节绳(玛雅人用于记事的工具)中,教授发现玛雅人使用了一个一年有365天的叫做Haab的历法。这个Haab历法拥有19个月,在开始的18个月,一个月有20天,月份的名字分别是pop, no, zip, zotz, tzec, xul, 阅读全文
posted @ 2020-01-24 11:19 mizersy 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 总时间限制: 1000ms 内存限制: 65536kB描述 一个长度为n(n>0)的序列中存在“有趣的跳跃”当前仅当相邻元素的差的绝对值经过排序后正好是从1到(n-1)。例如,1 4 2 3存在“有趣的跳跃”,因为差的绝对值分别为3,2,1。当然,任何只包含单个元素的序列一定存在“有趣的跳跃”。你需 阅读全文
posted @ 2020-01-24 10:40 mizersy 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 总时间限制: 1000ms 内存限制: 65536kB描述 一个数的序列bi,当b1 < b2 < ... < bS的时候,我们称这个序列是上升的。对于给定的一个序列(a1, a2, ...,aN),我们可以得到一些上升的子序列(ai1, ai2, ..., aiK),这里1 <= i1 < i2 阅读全文
posted @ 2020-01-23 17:26 mizersy 阅读(578) 评论(0) 推荐(2) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/1114/A来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 524288K,其他语言1048576K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒 空间 阅读全文
posted @ 2019-10-12 11:46 mizersy 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 题目描述 The country is facing a terrible civil war cities in the country are divided into two parts supporting different leaders. As a merchant, Mr. M do 阅读全文
posted @ 2019-09-30 19:16 mizersy 阅读(261) 评论(0) 推荐(1) 编辑
摘要: 题意翻译 nn 个数,qq 次操作 操作0 x y把A_xAx​ 修改为yy 操作1 l r询问区间[l, r][l,r] 的最大子段和 感谢 @Edgration 提供的翻译 题目描述 You are given a sequence A of N (N <= 50000) integers be 阅读全文
posted @ 2019-04-27 22:25 mizersy 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 矩阵快速幂裸题。 4月12日 4月13日更新:这题打表找规律就行...我自闭了 阅读全文
posted @ 2019-04-12 21:10 mizersy 阅读(183) 评论(0) 推荐(0) 编辑