动态规划
Justesss
这个作者很懒,什么都没留下…
展开
-
NYOJ-219 An problem about date
An problem about date时间限制:2000 ms | 内存限制:65535 KB难度:2描述acm的iphxer经常忘记某天是星期几,但是他记那天的具体日期,他希望你能写个程序帮帮他。 输入每行有三个整数 year,month,day,日期在1600年1月1日到9600年1月1日之间;输出输出对应的星期,用一个整原创 2014-07-07 22:50:32 · 670 阅读 · 0 评论 -
UVA-10635 Prince and Princess
Problem DPrince and PrincessInput: Standard InputOutput: Standard OutputTime Limit: 3 Seconds In an n x n chessboard, Prince and Princess plays a game. The squares in the chessboard are原创 2014-07-08 16:51:32 · 649 阅读 · 0 评论 -
NYOJ-269 VF
VF时间限制:1000 ms | 内存限制:65535 KB难度:2描述Vasya is the beginning mathematician. He decided to make an important contribution to the science and to become famous all over the world. But原创 2014-07-10 18:00:38 · 1016 阅读 · 0 评论 -
LA-3882 And Then There Was One
3882 - And Then There Was OneTime limit: 3.000 seconds Let's play a stone removing game. Initially, n stones are arranged on a circle and numbered1,..., n clockwise (Figure 1). You are also原创 2014-07-08 16:10:39 · 741 阅读 · 0 评论 -
NYOJ-171 聪明的kk
聪明的kk时间限制:1000 ms | 内存限制:65535 KB难度:3描述聪明的“KK”非洲某国展馆的设计灵感源于富有传奇色彩的沙漠中陡然起伏的沙丘,体现出本国不断变换和绚丽多彩的自然风光与城市风貌。展馆由五部分组成,馆内影院播放名为《一眨眼的瞬间》的宽银幕短片,反映了建国以来人民生活水平和城市居住环境的惊人巨变。可移动“沙丘”变戏法 的灵感源于其独原创 2014-07-10 17:40:59 · 629 阅读 · 0 评论 -
NYOJ-18 The Triangle
The Triangle时间限制:1000 ms | 内存限制:65535 KB难度:4描述73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of原创 2014-07-10 17:39:02 · 427 阅读 · 0 评论 -
NYOJ-252 01串
01串时间限制:1000 ms | 内存限制:65535 KB难度:2描述ACM的zyc在研究01串,他知道某一01串的长度,但他想知道不含有“11”子串的这种长度的01串共有多少个,他希望你能帮帮他。注:01串的长度为2时,有3种:00,01,10。输入第一行有一个整数n(0随后有n行,每行有一个整数m(2输出输出不含有“1原创 2014-07-10 17:44:02 · 920 阅读 · 0 评论 -
NYOJ-289 苹果
苹果时间限制:3000 ms | 内存限制:65535 KB难度:3描述ctest有n个苹果,要将它放入容量为v的背包。给出第i个苹果的大小和价钱,求出能放入背包的苹果的总价钱最大值。输入有多组测试数据,每组测试数据第一行为2个正整数,分别代表苹果的个数n和背包的容量v,n、v同时为0时结束测试,此时不输出。接下来的n行,每行2个原创 2014-07-12 18:22:19 · 795 阅读 · 0 评论