码迷,mamicode.com
首页 >  
搜索关键字:csu 1547 rectangle    ( 2022个结果
CSU1648: Swipe
Description 德鲁伊在炉石传说中是一个很稳定的职业,主流的卡组套路有咆哮德,城墙德以及让人很无奈的疲劳德。然而,大部分的卡组总都包括“横扫”这张德鲁伊的职业法术卡。       我们假定战场上的敌人数目不定,敌人的血量已知,我们想知道最少使用多少张“横扫”能消灭战场上所有敌人。 Input 第一行一个整数T( T 接下来有T组数据, 每组数据第一行n (...
分类:其他好文   时间:2015-05-31 20:15:26    阅读次数:126
CSU1646: HearthStone(DP)
Description Henry十分钟爱炉石传说(Heart Stone)这款有趣的桌面卡牌游戏。 我们简化的游戏规则如下: 游戏由两人对战,出牌并尽量对对方造成最大的伤害,一共进行 r轮。 前10轮,第i轮你有i个法力水晶;之后每轮都有10个法力水晶。前一轮未使用的法力水晶不能累积到下一轮。有两种卡牌,随从卡 “达拉然法师” 和 法术卡  “刺骨”。...
分类:其他好文   时间:2015-05-31 20:15:05    阅读次数:134
c++ 基本使用
1 枚举 1 enum ShapeType 2 { 3 circle, 4 square, 5 rectangle 6 }; 7 8 int main() { 9 10 ShapeType shape = circle;11 12 switch(shape)...
分类:编程语言   时间:2015-05-30 15:16:36    阅读次数:125
第十三周项目二:形状类族的中的纯虚函数
问题及代码: /* *Copyright (c)2015,烟台大学计算机与控制工程学院 *All rights reserved. *文件名称: 形状类族的中的纯虚函数 .cpp *作 者:白云飞 *完成日期:2015年5月29日 *版 本 号:v1.0 * *问题描述:定义抽象基类Shape,由它派生出3个派生类,Circle(圆形)、Rectangle(矩形)、Tri...
分类:其他好文   时间:2015-05-29 15:49:43    阅读次数:115
84 Largest Rectangle in Histogram
参考 :http://www.cnblogs.com/lichen782/p/leetcode_Largest_Rectangle_in_Histogram.html public int largestRectangleArea(int[] height) { int i =...
分类:其他好文   时间:2015-05-29 09:44:48    阅读次数:124
第十三周项目二 形状类族的中的纯虚函数
【项目2-形状类族的中的纯虚函数】 写一个程序,定义抽象基类Shape,由它派生出3个派生类,Circle(圆形)、Rectangle(矩形)、Triangle(三角形)。用如下的main()函数,求出定义的几个几何体的面积和。  [cpp] view plaincopyprint? int main()   {       Circle c1(1...
分类:其他好文   时间:2015-05-27 15:52:56    阅读次数:145
POJ 2559 Largest Rectangle in a Histogram(单调栈)
Description A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have different heights. For example, the figure o...
分类:其他好文   时间:2015-05-26 01:40:02    阅读次数:770
Java Swing 绝对布局管理方法,null布局(转)
首先把相关容器的布局方式设为 setLayout(null);然后调用组件的 setBounds() 方法设置button的位置为(100,100) 长宽分别为 60,25jButton.setBounds(new Rectangle(100, 100, 60, 25));?import java....
分类:编程语言   时间:2015-05-26 00:13:58    阅读次数:176
CSU1633: Landline Telephone Network
Description The mayor of RMRCity wants to create a secure landline telephone network for emergency use in case of serious disasters when the city is cut off from the outside world. Some pairs of bu...
分类:Web程序   时间:2015-05-25 16:47:52    阅读次数:234
hdu1828 Picture
Problem Description A number of rectangular posters, photographs and other pictures of the same shape are pasted on a wall. Their sides are all vertical or horizontal. Each rectangle can be partial...
分类:其他好文   时间:2015-05-25 16:42:55    阅读次数:110
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!