码迷,mamicode.com
首页 >  
搜索关键字:elephant    ( 131个结果
CodeForces 204A Little Elephant and Interval 数位DP
#include #include using namespace std; typedef __int64 LL; int a[33]; LL dp[33][10]; LL dfs(int x, int s, int e, int flag, int first) { if(x == -1) return s == e; if(!flag && dp[x][...
分类:其他好文   时间:2015-02-09 14:10:22    阅读次数:200
ural 2018. The Debut Album 滚动数组dp
点击打开链接 2018. The Debut Album Time limit: 2.0 second Memory limit: 64 MB Pop-group “Pink elephant” entered on recording their debut album. In fact they have only two songs: “My love...
分类:编程语言   时间:2015-01-15 22:04:18    阅读次数:304
Java中对象比较和排序实例
(1)对Element对象进行排序(根据体重和年龄) (2)要想使用Arrays.sort支持排序的类必须实现Comparable接口 publicclassElephantimplementsComparable{ intweight; intage; floattusklength; @Override publicintcompareTo(Objecto){ Elephantotherelephant=(Elephant)o..
分类:编程语言   时间:2015-01-03 13:20:12    阅读次数:143
小动物园系统
Main.m #import "Panda.h" #import "Elephant.h" #import "Kangaroo.h" #import "Zoo.h" #import "Admin.h" int main(int argc, const char * argv[]) { @autoreleasepool { //创建对象 Panda *panda ...
分类:其他好文   时间:2014-10-28 21:50:22    阅读次数:294
UVA 10131 Is Bigger Smarter?(DP)
Some people think that the bigger an elephant is, the smarter it is. To disprove this, you want to take the data on a collection of elephants and put as large a subset of this data as possible into a...
分类:其他好文   时间:2014-10-23 20:51:42    阅读次数:221
Codeforces Round #269 (Div. 2) B. MUH and Important Things
It's time polar bears Menshykov and Uslada from the zoo of St. Petersburg and elephant Horace from the zoo of Kiev got down to business. In total, there are n tasks for the day and each animal shoul...
分类:其他好文   时间:2014-10-03 02:22:04    阅读次数:376
Codeforces Round #269 (Div. 2)
Two polar bears Menshykov and Uslada from the St.Petersburg zoo and elephant Horace from the Kiev zoo got six sticks to play with and assess the animals' creativity. Menshykov, Uslada and Horace decid...
分类:其他好文   时间:2014-09-28 10:50:23    阅读次数:196
struts2使用了radio时出现异常No result defined for action com.elephant.action.UserInfoAction and result input
这两天遇到一个很奇葩的问题,在使用struts2作跳转时,出现有的页面可以跳转,有的不可以跳转 问题:action跳转时出现无法跳转情况 原因:在跳转的页面使用了单选框 radio标签,并且radio未加value属性 解决办法:给radio加上value值就ok了...
分类:其他好文   时间:2014-09-24 14:27:26    阅读次数:233
pygame系列_箭刺Elephant游戏
这个游戏原名为:Chimp,我们可以到:http://www.pygame.org/docs/tut/chimp/ChimpLineByLine.html获取到源码和详细的源码讲解下面是我对游戏的改编:运行效果:当箭刺到大象的时候,大象的身体就会翻转,并且发出声音,当然没有刺到的时候,也会发出另外的...
分类:其他好文   时间:2014-09-16 21:48:31    阅读次数:294
CF 258B Little Elephant and Elections [dp+组合]
给出1,2,3...m 求出 a1,a2,a3,a4,a5,a6,a7的排列共有...
分类:其他好文   时间:2014-08-23 03:35:09    阅读次数:246
131条   上一页 1 ... 10 11 12 13 14 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!