上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: Colder-Hotter Statements This is an interactive problem. Egor and Petr are playing a game called «Colder-Hotter» on a 2D plane. At the beginning of th 阅读全文
posted @ 2018-10-30 18:40 yzm10 阅读(246) 评论(0) 推荐(0) 编辑
摘要: yzm10的进阶之路,记录一点一滴的进步,希望与之共勉。 时间 比赛 级别 战绩 2015.11 NOIP2015全国青少年信息学奥林匹克联赛 提高组 二等奖 2017.6 青岛大学“六一八杯”校赛个人赛 校级 rank1 2017.11 第五届“易途杯”Java编程大赛 校级 人气奖&优秀个人 2 阅读全文
posted @ 2018-10-25 23:08 yzm10 阅读(900) 评论(0) 推荐(0) 编辑
摘要: 一、I/O优化 读入优化是卡常数最重要的一条! 输出优化好像不常用... 二、inline 在声明函数之前写上inline,可以加快一下函数调用,但只能用于一些操作简单、调用频繁的函数。涉及递归,大号的循环等很复杂的函数,编译器会自动忽略inline。(我不知道强制inline有没有用)。 三、re 阅读全文
posted @ 2018-10-18 17:10 yzm10 阅读(206) 评论(0) 推荐(0) 编辑
摘要: The Battle of Chibi Cao Cao made up a big army and was going to invade the whole South China. Yu Zhou was worried about it. He thought the only way to 阅读全文
posted @ 2018-10-11 20:15 yzm10 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/ac_gibson/article/details/41624623 一. 巴什博奕(Bash Game): A和B一块报数,每人每次报最少1个,最多报4个,看谁先报到30。这应该是最古老的关于巴什博奕的游戏了吧。 其实如果知道原理,这游戏一点运气成 阅读全文
posted @ 2018-10-08 16:12 yzm10 阅读(273) 评论(0) 推荐(0) 编辑
摘要: Find an element in hidden array There is an array of length N consisting of non-negative integers. The array is sorted in non-decreasing order. Each n 阅读全文
posted @ 2018-10-07 22:32 yzm10 阅读(301) 评论(0) 推荐(0) 编辑
摘要: String Given a string S and two integers L and M, we consider a substring of S as “recoverable” if and only if (i) It is of length M*L; (ii) It can be 阅读全文
posted @ 2018-10-06 21:06 yzm10 阅读(353) 评论(0) 推荐(0) 编辑
摘要: P3379 【模板】最近公共祖先(LCA) 题目描述 如题,给定一棵有根多叉树,请求出指定两个点直接最近的公共祖先。 输入输出格式 输入格式: 第一行包含三个正整数N、M、S,分别表示树的结点个数、询问的个数和树根结点的序号。 接下来N-1行每行包含两个正整数x、y,表示x结点和y结点之间有一条直接 阅读全文
posted @ 2018-10-04 22:15 yzm10 阅读(265) 评论(0) 推荐(0) 编辑
摘要: https://cn.vjudge.net/problem/Gym-101889E 1??????????????????????????????? 2 10000000000000000000000000000000 ???????????????????????????????1 2 * ?29 阅读全文
posted @ 2018-10-03 21:27 yzm10 阅读(296) 评论(0) 推荐(0) 编辑
摘要: P3382 【模板】三分法 题目描述 如题,给出一个N次函数,保证在范围[l,r]内存在一点x,使得[l,x]上单调增,[x,r]上单调减。试求出x的值。 输入输出格式 输入格式: 第一行一次包含一个正整数N和两个实数l、r,含义如题目描述所示。 第二行包含N+1个实数,从高到低依次表示该N次函数各 阅读全文
posted @ 2018-10-03 20:04 yzm10 阅读(782) 评论(0) 推荐(0) 编辑
摘要: 联合权值 题目描述 无向连通图 GG 有 nn 个点,n-1n−1 条边。点从 11 到 nn 依次编号,编号为 ii 的点的权值为 W_iWi​,每条边的长度均为 11。图上两点 (u, v)(u,v) 的距离定义为 uu 点到 vv 点的最短距离。对于图 GG 上的点对 (u, v)(u,v), 阅读全文
posted @ 2018-10-01 19:46 yzm10 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Partial Tree In mathematics, and more specifically in graph theory, a tree is an undirected graph in which any two nodes are connected by exactly one 阅读全文
posted @ 2018-10-01 19:29 yzm10 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 跳石头 题目背景 一年一度的“跳石头”比赛又要开始了! 题目描述 这项比赛将在一条笔直的河道中进行,河道中分布着一些巨大岩石。组委会已经选择好了两块岩石作为比赛起点和终点。在起点和终点之间,有 NN 块岩石(不含起点和终点的岩石)。在比赛过程中,选手们将从起点出发,每一步跳向相邻的岩石,直至到达终点 阅读全文
posted @ 2018-09-30 14:38 yzm10 阅读(464) 评论(0) 推荐(0) 编辑
摘要: Adjustment Office Gym - 100851A 2 3 4 3 4 5 4 5 6 n<=10^6,q<=10^5 每个坐标点的值为x+y。 q次查询,每次求某行或某列的和,然后清空。 in out 3 7 12R 2 10C 3 0R 2 5R 1 5C 2 4C 1 0R 3 阅读全文
posted @ 2018-09-27 22:49 yzm10 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Decoding of Varints Statements Varint is a type used to serializing integers using one or more bytes. The key idea is to have smaller values being enc 阅读全文
posted @ 2018-09-27 22:30 yzm10 阅读(313) 评论(0) 推荐(0) 编辑
摘要: Brackets We give the following inductive definition of a “regular brackets” sequence: the empty sequence is a regular brackets sequence, if s is a reg 阅读全文
posted @ 2018-09-25 20:30 yzm10 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 石子合并问题--圆形版 在圆形操场上摆放着一行共n堆的石子。现要将石子有序地合并成一堆。规定每次只能选相邻的两堆合并成新的一堆,并将新的一堆石子数记为该次合并的得分。请编辑计算出将n堆石子合并成一堆的最小得分和将n堆石子合并成一堆的最大得分。 Input 输入有多组测试数据。 每组第一行为n(n<= 阅读全文
posted @ 2018-09-25 20:15 yzm10 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Recursive sequence Farmer John likes to play mathematics games with his N cows. Recently, they are attracted by recursive sequences. In each turn, the 阅读全文
posted @ 2018-09-23 16:52 yzm10 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 题目4 : 80 Days 题目4 : 80 Days 时间限制:1000ms 单点时限:1000ms 内存限制:256MB 描述 80 Days is an interesting game based on Jules Verne's science fiction "Around the Wo 阅读全文
posted @ 2018-09-22 19:12 yzm10 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 题目2 : Tomb Raider 题目2 : Tomb Raider 时间限制:1000ms 单点时限:1000ms 内存限制:256MB 描述 Lara Croft, the fiercely independent daughter of a missing adventurer, must 阅读全文
posted @ 2018-09-22 19:09 yzm10 阅读(357) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页