码迷,mamicode.com
首页 >  
搜索关键字:being a good boy in    ( 3225个结果
10句电影台词
1、“There is no certainty, only opportunity.”没有一定会怎样,只有可能会怎样。--《V字仇杀队》,V2、“A good plan today is better than a perfect plan tomorrow.”今天的好计划胜过明天的完美计划。--...
分类:其他好文   时间:2015-05-14 13:39:55    阅读次数:91
HDU 1847 Good Luck in CET-4 Everybody! 四级好运!(博弈,简单)
思路:先用P/N状态来找规律。N状态:1 2 4 6 8 16P状态:3 5因为3=1+2, 无论拿1或者2皆输。看看5,只要抽掉2就变成了3,所以是N状态。看看6,可以抽掉1 2 4,若抽1,变5,则输;若抽2,变4,则输;若抽4,变2,则输。看看7,抽掉1变成6,那么是N状态。同理8也是。看看9...
分类:其他好文   时间:2015-05-14 00:50:24    阅读次数:103
leetcode 7 Reverse Integer
Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers.Have you thought about this? Here are some good questions to ask before coding. Bonu...
分类:其他好文   时间:2015-05-13 21:49:54    阅读次数:235
【学习笔记】JavaScript编码规范-数组
使用字面量语法创建数组 //good var items = []; //bad var items = new Array(); 当需要添加数组元素时,使用push而不是直接添加 var items = []; //good items.push('abc'); //bad items[items.length] = 'abc'; 当需要复制数组时,可以使用slice. var len...
分类:编程语言   时间:2015-05-13 16:48:54    阅读次数:183
HDU 1850 Being a Good Boy in Spring Festival (Nim博弈)
Nim博弈...
分类:编程语言   时间:2015-05-13 14:51:17    阅读次数:177
【学习笔记】JavaScript编码规范-对象
使用字面量语法创建对象 //good var itemA = {}; //bad var itemB = new Object(); 不要使用保留字(IE8不起作用) //good var studentA = {defaults:{name:'Jay'},sexual:male}; //bad var studentB = {default:{name:'Lucy'},sexu...
分类:编程语言   时间:2015-05-13 14:47:18    阅读次数:145
hdu3038 How Many Answers Are Wrong
Problem Description TT and FF are ... friends. Uh... very very good friends -________-b FF is a bad boy, he is always wooing TT to play the following game with him. This is a very humdrum game. ...
分类:其他好文   时间:2015-05-13 12:59:27    阅读次数:114
python练习2
hello.py#!/usr/local/bin/python3.4count=0while(count<9): print('the count is:',count) count=count+1;print('good bye!')运行:./hello.py
分类:编程语言   时间:2015-05-13 12:20:01    阅读次数:131
C++之文件输入输出
在这里遇见不少的问题,其中的路径问题就是在windows中,\\转义字符才能准确的表示路径#include #include #include #define max 105using namespace std;struct boy{ char name[20]; int china;...
分类:编程语言   时间:2015-05-12 20:56:05    阅读次数:130
《Haskell趣学指南 Learn You a Haskell for Great Good!》-代码实验
doubleMe x = x + xdoubleUs x y = doubleMe x + doubleMe ydoubleSmallNumber x = if x>100 then x else x * 2 doubleSmallNumber' x =...
分类:其他好文   时间:2015-05-12 20:48:06    阅读次数:104
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!