摘要: Jumping CowsTime Limit:1000MS Memory Limit:32768KDescription:Farmer John's cows would like to jump over the moon, just like the cows in their favorite nursery rhyme. Unfortunately, cows can not jump. The local witch doctor has mixed up P (1 <= P <= 150,000) potions to aid the cows in their 阅读全文
posted @ 2012-09-09 18:07 findingsea 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Jolly JumpersTime Limit:1000MS Memory Limit:1024KDescription:A sequence of n (n> 0) integers is called a jolly jumper if the absolute values of the difference between successive elements take on all the values 1 through n-1. For instance, 1 4 2 3 is a jolly jumper, because the absolutes differenc 阅读全文
posted @ 2012-09-09 14:45 findingsea 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 做幻方Time Limit:1000MS Memory Limit:1024KDescription:Apple最近迷上了做幻方,Apple还是个中高手,只要你说个奇数N,他就能把N*N的幻方做出来。其实你可以比他做得更好的。Apple总是画得很乱,而你可以利用程序排得很整齐^_^ 幻方的要求:每一行,每一列,还有两条斜线上数字的和都相等。Input:每行有一个数N(0< N < 30),输入0结束。Output:输入一个奇数,输出一个幻方,每个数占3格,顺序参照样板输出,输出完以后加一个回车。Sample Input:510Sample Output: 11 18 25 2 9 阅读全文
posted @ 2012-09-09 01:46 findingsea 阅读(386) 评论(0) 推荐(0) 编辑
摘要: AnimateTime Limit:1000MS Memory Limit:32768KDescription:Have you ever Googled the “Animate”?Tyr Googles the “Animate” one day, and find out 245 match records.But he doesn't know whether the number 245 is correct or not. Here comes the problem A: Give you documentation,your task is to find out wh 阅读全文
posted @ 2012-09-09 00:28 findingsea 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 【什么是cookie】“cookie 是存储于访问者的计算机中的变量。每当同一台计算机通过浏览器请求某个页面时,就会发送这个 cookie。你可以使用 JavaScript 来创建和取回 cookie 的值。” ——w3school不同的浏览器可能对cookie的储存方式不同,但是相同的是cookie中的内容都是保存在客户一端的。(session是保存在服务器上的)【cookie的几点注意】说的通俗一点,cookie就是一个字符串(这点可以用alert(... 阅读全文
posted @ 2012-08-31 14:05 findingsea 阅读(10058) 评论(1) 推荐(4) 编辑