随笔分类 -  OI

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页
摘要:[POJ1185]炮兵阵地 试题描述 司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上 阅读全文
posted @ 2016-11-27 21:59 xjr01 阅读(298) 评论(0) 推荐(0)
摘要:[HDU3555]Bomb 试题描述 The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence of 阅读全文
posted @ 2016-11-27 20:37 xjr01 阅读(258) 评论(0) 推荐(0)
摘要:[POJ3096]Surprising Strings 试题描述 The D-pairs of a string of letters are the ordered pairs of letters that are distance D from each other. A string is  阅读全文
posted @ 2016-11-26 22:58 xjr01 阅读(329) 评论(0) 推荐(0)
摘要:[POJ1068]Parencodings 试题描述 Let S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways: q By an integer sequenc 阅读全文
posted @ 2016-11-26 22:26 xjr01 阅读(326) 评论(0) 推荐(0)
摘要:[POJ3295]Tautology 试题描述 WFF 'N PROOF is a logic game played with dice. Each die has six faces representing some subset of the possible symbols K, A, N 阅读全文
posted @ 2016-11-26 12:05 xjr01 阅读(434) 评论(0) 推荐(0)
摘要:[POJ2586]Y2K Accounting Bug 试题描述 Accounting for Computer Machinists (ACM) has sufferred from the Y2K bug and lost some vital data for preparing annual 阅读全文
posted @ 2016-11-26 11:22 xjr01 阅读(343) 评论(0) 推荐(0)
摘要:[POJ2109]Power of Cryptography 试题描述 Current work in cryptography involves (among other things) large prime numbers and computing powers of numbers amo 阅读全文
posted @ 2016-11-26 10:47 xjr01 阅读(323) 评论(0) 推荐(0)
摘要:[POJ1328]Radar Installation 试题描述 Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small islan 阅读全文
posted @ 2016-11-26 10:05 xjr01 阅读(240) 评论(0) 推荐(0)
摘要:[POJ2965]The Pilots Brothers' refrigerator 试题描述 The game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open 阅读全文
posted @ 2016-11-24 19:18 xjr01 阅读(210) 评论(0) 推荐(0)
摘要:[POJ1753]Flip Game 试题描述 Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece 阅读全文
posted @ 2016-11-24 17:56 xjr01 阅读(193) 评论(0) 推荐(0)
摘要:[codevs1029]遍历问题 试题描述 我们都很熟悉二叉树的前序、中序、后序遍历,在数据结构中常提出这样的问题:已知一棵二叉树的前序和中序遍历,求它的后序遍历,相应的,已知一棵二叉树的后序遍历和中序遍历序列你也能求出它的前序遍历。然而给定一棵二叉树的前序和后序,你却不能确定其中序遍历序列,考虑如 阅读全文
posted @ 2016-11-13 15:06 xjr01 阅读(266) 评论(0) 推荐(0)
摘要:[BZOJ1833][ZJOI2010]count 数字计数 试题描述 给定两个正整数a和b,求在[a,b]中的所有整数中,每个数码(digit)各出现了多少次。 给定两个正整数a和b,求在[a,b]中的所有整数中,每个数码(digit)各出现了多少次。 输入 输入文件中仅包含一行两个整数a、b,含 阅读全文
posted @ 2016-11-13 12:12 xjr01 阅读(422) 评论(0) 推荐(0)
摘要:[codevs2181]田忌赛马 试题描述 中国古代的历史故事“田忌赛马”是为大家所熟知的。话说齐王和田忌又要赛马了,他们各派出N匹马,每场比赛,输的一方将要给赢的一方200两黄金,如果是平局的话,双方都不必拿出钱。现在每匹马的速度值是固定而且已知的,而齐王出马也不管田忌的出马顺序。请问田忌该如何安 阅读全文
posted @ 2016-11-11 21:36 xjr01 阅读(307) 评论(0) 推荐(0)
摘要:[BZOJ1026][SCOI2009]windy数 试题描述 windy定义了一种windy数。不含前导零且相邻两个数字之差至少为2的正整数被称为windy数。 windy想知道,在A和B之间,包括A和B,总共有多少个windy数? windy定义了一种windy数。不含前导零且相邻两个数字之差至 阅读全文
posted @ 2016-11-11 21:28 xjr01 阅读(351) 评论(0) 推荐(0)
摘要:[POJ3252]Round Numbers 试题描述 The cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone' (also known as 'Rock, 阅读全文
posted @ 2016-11-09 20:07 xjr01 阅读(337) 评论(0) 推荐(0)
摘要:[codevs1027]姓名与ID 试题描述 有N个人,各自有一个姓名和ID(别名)。每个人的姓名和ID都没有重复。这些人依次进入一间房间,然后可能会离开。过程中可以得到一些信息,告知在房间里的某个人的ID。你的任务是准确地确定每个人的ID。 有N个人,各自有一个姓名和ID(别名)。每个人的姓名和I 阅读全文
posted @ 2016-11-06 23:00 xjr01 阅读(196) 评论(0) 推荐(0)
摘要:[codevs1022]覆盖 试题描述 有一个N×M的单位方格中,其中有些方格是水塘,其他方格是陆地。如果要用1×2的矩阵区覆盖(覆盖过程不容许有任何部分重叠)这个陆地,那么最多可以覆盖多少陆地面积。 有一个N×M的单位方格中,其中有些方格是水塘,其他方格是陆地。如果要用1×2的矩阵区覆盖(覆盖过程 阅读全文
posted @ 2016-11-06 10:49 xjr01 阅读(193) 评论(0) 推荐(0)
摘要:[codevs1021]玛丽卡 试题描述 麦克找了个新女朋友,玛丽卡对他非常恼火并伺机报复。 因为她和他们不住在同一个城市,因此她开始准备她的长途旅行。 在这个国家中每两个城市之间最多只有一条路相通,并且我们知道从一个城市到另一个城市路上所需花费的时间。 麦克在车中无意中听到有一条路正在维修,并且那 阅读全文
posted @ 2016-11-06 09:13 xjr01 阅读(188) 评论(0) 推荐(0)
摘要:[BZOJ1999][codevs1167][Noip2007]Core树网的核 试题描述 设T=(V, E, W) 是一个无圈且连通的无向图(也称为无根树),每条边带有正整数的权,我们称T为树网(treenetwork),其中V, E分别表示结点与边的集合,W表示各边长度的集合,并设T有n个结点。 阅读全文
posted @ 2016-11-04 16:00 xjr01 阅读(211) 评论(0) 推荐(0)
摘要:[BZOJ2656][codevs1207][Zjoi2012]数列(sequence) 试题描述 小白和小蓝在一起上数学课,下课后老师留了一道作业,求下面这个数列的通项公式: 小白作为一个数学爱好者,很快就计算出了这个数列的通项公式。于是,小白告诉小蓝自己已经做出来了,但为了防止小蓝抄作业,小白并 阅读全文
posted @ 2016-11-02 15:52 xjr01 阅读(221) 评论(0) 推荐(0)

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页