当前位置:码农谷 > 算法与程序 > 程序
程序

HDU 4681 String:题目解答源码

Given 3 strings A, B, C, find the longest string D which satisfy the following rules: a) D is the subsequence of A b) D is the subsequence of B c) C is th..
难度: 关注度:79 所属学科:C语言 - 基本概念

ZOJ 3242 Code Merging:题目解答源码

BackgroundVersion control is the art of managing changes to information. It has long been a critical tool for programmers, who typically spend their time making..
难度: 关注度:46 所属学科:C++语言 - 程序控制结构

HDU 2013 蟠桃记:题目解答源码

喜欢西游记的同学肯定都知道悟空偷吃蟠桃的故事,你们一定都觉得这猴子太闹腾了,其实你们是有所不知:悟空是在研究一个数学问题! 什么问题?他研究的问题是蟠桃一共有多..
难度: 关注度:51 所属学科:C语言 - 基本概念

POJ 3233 Matrix Power Series:题目解答源码

Given a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak.输入描述The input contains exactly one test case. The first line of input..
难度: 关注度:35 所属学科:C语言 - 编译预处理

ZOJ 3263 Immaterial and Missing Power:题目解答源码

Spring has passed by the land of Gensokyo, a reclusive realm in the far east, and the cherry trees have since shred their blossoms. However, the hanami(flower v..
难度: 关注度:38 所属学科:C语言 - 数组与字符串

HDU 5325 Crazy Bobo:题目解答源码

Bobo has a tree,whose vertices are conveniently labeled by 1,2,...,n.Each node has a weight $w_i$. All the weights are distrinct. A set with m nodes ${v_1..
难度: 关注度:33 所属学科:C语言 - 文件操作

POJ 3339 Team Arrangement:题目解答源码

Barry Bennett, the coach of the Bings football team, wants to arrange his team for an important match against the Bangs. He decides on the formation he wants to..
难度: 关注度:43 所属学科:C语言 - 基本概念

ZOJ 3781 Paint the Grid Reloaded:题目解答源码

Leo has a grid with N rows and M columns. All cells are painted with either black or white initially.Two cells A and B are called connected if they share an edg..
难度: 关注度:28 所属学科:C语言 - 位运算

HDU 2083 简易版之最短距离:题目解答源码

寒假的时候,ACBOY要去拜访很多朋友,恰巧他所有朋友的家都处在坐标平面的X轴上。ACBOY可以任意选择一个朋友的家开始访问,但是每次访问后他都必须回到出发点,然后才能去访问下..
难度: 关注度:41 所属学科:C语言 - 结构体与共用体

POJ 3599 Pumping Lemma:题目解答源码

In the theory of formal languages, the pumping lemma for regular languages bears importance for its characterization of an essential property of all regular lan..
难度: 关注度:29 所属学科:C语言 - 函数

HDU 4152 ZZY’s Dilemma:题目解答源码

ZZY has many habits like seeing movie, listening music, playing PC game and football and so on. Besides he has many goals, as not every habit is good for achiev..
难度: 关注度:33 所属学科:C语言 - 数组与字符串

关注微信,获得更多免费资源
关于我们   |   免责声明   |   联系我们   |   网站地图   |   HR交流群   |   学生交流群   |   教师交流群

码农谷   版权所有 © 2015-2017   湘ICP备16018319号-1