码迷,mamicode.com
首页 >  
搜索关键字:elephant    ( 131个结果
codeforces 204(Div.1 A) Little Elephant and Interval(贪心)
题意: 有一种个位数与最高位数字相等的数字,求在l,r的范围内,这种数字的个数。 思路: 找下规律就知道当当n>10的时候除去个位以后的答案等于n/10,然后考虑第一个数字是否小于最后一个,小于减一,还要加上个位一定存在的9位数 import java.util.Scanner;public class xxz { public static void main(String[] ar...
分类:其他好文   时间:2015-08-14 17:11:27    阅读次数:85
uva10131 Is Bigger Smarter?(经典DP,最长上升子序列,注意保存路径部分)
Is Bigger Smarter? The ProblemSome 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...
分类:其他好文   时间:2015-07-22 18:58:01    阅读次数:121
Codeforces Round #136 (Div. 1)C. Little Elephant and Shifts multiset
C. Little Elephant and ShiftsTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/problemset/problem/220/CDescriptionThe Little Elephant ha...
分类:其他好文   时间:2015-07-03 19:07:50    阅读次数:151
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 anima...
分类:其他好文   时间:2015-07-03 12:14:53    阅读次数:111
【CF】220B Little Elephant and Array
区间动态统计的好题。 1 /* */ 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include ...
分类:其他好文   时间:2015-05-29 00:46:43    阅读次数:189
EF的泛型封装 写的很好 转自Fly_Elephant http://www.cnblogs.com/xiaofeixiang/p/4188600.html?utm_source=tuicool
Entity Framework本身的增删改查其实 已经很方便了,不过做项目的时候用的多了也就觉得有点累了,每个业务实体基本上都涉及到到了增删改查这四个基本的要素,至于封装每个公司可能都不一样,接口,设计模式都用的眼花缭乱,我闲来没事就搞个简单的封装Helper,Github上也有关于EF的扩展Li...
分类:Web程序   时间:2015-05-15 22:39:27    阅读次数:199
poj2965 The Pilots Brothers' refrigerator
Description The game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator. There are 16 handles on the refrigerator door. Every handle can...
分类:其他好文   时间:2015-04-30 21:59:43    阅读次数:218
Codeforces Round #269 (Div. 2)
A题意:给出6根木棍,如果有4根相同,2根不同,则构成“bear”,如果剩余两个相同,则构成“elephant”用一个数组分别储存各个数字出现的次数,再判断即可注意hash[i]==5的时候,也算作bear,因为它也是满足了4根相同,2根不同 1 #include 2 #include 3 ...
分类:其他好文   时间:2015-03-17 10:19:20    阅读次数:172
The Pilots Brothers' refrigerator
借用朋友的代码,感觉很正规,链接http://home.cnblogs.com/u/get-an-AC-everyday/DescriptionThe game “The Pilots Brothers: following the stripy elephant” has a quest wher...
分类:其他好文   时间:2015-03-04 14:27:39    阅读次数:186
CodeChef LUCKYBAL Little Elephant and Balance
Given an array A1,A2...AN, you have to print the size of the largest contiguous subarray such that LCM of all integers in that subarray is equal to th...
分类:其他好文   时间:2015-02-21 00:15:01    阅读次数:345
131条   上一页 1 ... 9 10 11 12 13 14 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!