码迷,mamicode.com
首页 >  
搜索关键字:being a good boy in    ( 3225个结果
UESTC_How many good substrings CDOJ 1026
Icerainlikes strings very much. Especially the strings only consist of0and1,she call them easy strings. One day, she is so boring that she want to fin...
分类:其他好文   时间:2015-04-30 00:58:18    阅读次数:127
指针&指针的指针,地址&地址的地址
1 #include 2 #include 3 #include 4 int main(int argc, char* argv[]) 5 { 6 char *s[]={"man","woman","girl","boy","sister"}; 7 char* *q=NULL; ...
分类:其他好文   时间:2015-04-29 11:32:59    阅读次数:127
IOC AOP 设计模式
IOC AOP 不是什么技术而是一种设计模式 学习 IOC AOP 其实是在学习一种思想。1.IOC IOC其实是将对象的创建和获取提取到外部。由外部IOC容器提供需要的组件。 看下面代码: public class Girl { //外部包办直接传入boy类 publ...
分类:其他好文   时间:2015-04-28 18:06:31    阅读次数:151
DB2 10.1 安装报错:DB2 installation is being initialized
报错信息:DBI1446I The db2icrt command is running, please wait.DB2 installation is being initialized. DB2 pureScale instance creation requires you specify ...
分类:数据库   时间:2015-04-28 15:48:08    阅读次数:323
POJ 2431Expedition
DescriptionA group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortunately manag...
分类:其他好文   时间:2015-04-28 09:29:00    阅读次数:83
Decode Ways -- leetcode
A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits, determine the total nu...
分类:其他好文   时间:2015-04-27 15:16:14    阅读次数:124
尼姆博弈:Being a Good Boy in Spring Festival
Problem Description一年在外 父母时刻牵挂春节回家 你能做几天好孩子吗寒假里尝试做做下面的事情吧陪妈妈逛一次菜场悄悄给爸爸买个小礼物主动地 强烈地 要求洗一次碗某一天早起 给爸妈用心地做回早餐如果愿意 你还可以和爸妈说咱们玩个小游戏吧 ACM课上学的呢~下面是一个二人小游戏:桌子上...
分类:编程语言   时间:2015-04-27 15:00:42    阅读次数:163
HDU1847 Good Luck in CET-4 Everybody!【博弈】
题目大意: 有N张牌,两个人轮流抓,每次抓的牌数只能是2的幂次(2^0、2^1、2^2、…)。最后抓完牌的人获胜。 Kiki和Cici都是足够聪明的学生,Kiki先抓,输出赢得比赛的人。 思路: 找必败点,很容易知道当N==3时是一个必败点,因为只能取1或是2,而剩下的牌肯定能被对手取完, 所以3是一个必败点。4能取1把场面变为3,所以4是必胜点,5能取2把场面变为3。而6的话,要么取 完剩下2的幂次让对手赢,或者留下机会让对手把场面变为3(必败点)。同理3的倍数一样,不能一次性 把牌取完,最后要么自己取...
分类:其他好文   时间:2015-04-25 22:46:53    阅读次数:194
Java [leetcode 7] Reverse Integer
问题描述:Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321Have you thought about this?Here are some good question...
分类:编程语言   时间:2015-04-25 14:50:25    阅读次数:111
POJ 2480 Longge's problem (欧拉函数+乘性函数)
Longge's problem Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 7343   Accepted: 2422 Description Longge is good at mathematics and he likes to think about...
分类:其他好文   时间:2015-04-25 12:21:06    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!