码迷,mamicode.com
首页 >  
搜索关键字:farmer john wants th    ( 8242个结果
JavaScript模板引擎使用
1. [代码]tmpl.js // Simple JavaScript Templating// John Resig - http://ejohn.org/ - MIT Licensed(function() {var cache = {};this.tmpl = function tmpl(s....
分类:编程语言   时间:2014-07-09 19:19:15    阅读次数:290
poj 1258 最小生成树
链接: http://poj.org/problem?id=1258Agri-NetTime Limit:1000MSMemory Limit:10000KTotal Submissions:38326Accepted:15424DescriptionFarmer John has been ele...
分类:其他好文   时间:2014-07-09 00:11:17    阅读次数:251
Cracking the Coding Interview Q1.6
Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do th...
分类:其他好文   时间:2014-07-08 22:06:25    阅读次数:222
POJ 2057 The Lost House
The Lost House Time Limit: 3000MS   Memory Limit: 30000K Total Submissions: 2140   Accepted: 886 Description One day a snail climbed up to a big tree and finally came to th...
分类:其他好文   时间:2014-07-08 18:08:00    阅读次数:267
JavaScript通过ID和name设置样式
JavaScript通过ID和name设置样式 1、说明 (1)根据所提供的元素的id值,返回对该元素的引用或节点 document.getElementById("tr_th") (2)根据参数中的标记,返回对一组元素的引用或节点 document.getElementsByTagName("td") 2、实现源码 JavaScript通过ID和...
分类:编程语言   时间:2014-07-08 17:16:41    阅读次数:196
zoj 3537 Cake (凸包判定+区间dp)
Cake Time Limit: 1 Second      Memory Limit: 32768 KB You want to hold a party. Here's a polygon-shaped cake on the table. You'd like to cut the cake into several triangle-shaped parts for th...
分类:其他好文   时间:2014-07-08 15:36:15    阅读次数:298
poj 2376 Cleaning Shifts
DescriptionFarmer John is assigning some of his N (1 2 #include 3 #include 4 using namespace std; 5 int vis[1100009]; 6 int a,b; 7 struct node 8 { 9 ....
分类:其他好文   时间:2014-07-06 14:50:25    阅读次数:155
HDU - 4709 Herding
Description Little John is herding his father's cattles. As a lazy boy, he cannot tolerate chasing the cattles all the time to avoid unnecessary omission. Luckily, he notice that there were N trees...
分类:其他好文   时间:2014-07-06 10:39:09    阅读次数:188
素数判定 费马测试
;; Fermat's Little Theorem: ;; If N is a prime number and A is any positive integer less ;; than N, then A raised to the N-th power is congruent to A modulo N ;; Two numbers are said to be congruent...
分类:其他好文   时间:2014-07-06 09:05:22    阅读次数:158
python练习题:循环打印嵌套列表
好久没写博文了,添加一个练习题,选自《head_first_python》~~python列表:以中括号开始和结束"[]";列表项以逗号","分隔开,使用赋值操作符"="赋予一个标识符。如:movies=["theholy",1975,"terryjones",91,["graham",["michael","john","gilliam","idle","haha"]]]注释:1..
分类:编程语言   时间:2014-07-04 00:56:23    阅读次数:596
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!