摘要: Maya CalendarTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 62297Accepted: 19221DescriptionDuring his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a 365 day lon 阅读全文
posted @ 2014-01-19 10:21 玩物尚智 阅读(2147) 评论(0) 推荐(0)
摘要: DNA SortingTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 77786Accepted: 31201DescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this m 阅读全文
posted @ 2014-01-19 10:13 玩物尚智 阅读(4697) 评论(4) 推荐(0)
摘要: BiorhythmsTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 107569Accepted: 33365DescriptionSome people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they have perio 阅读全文
posted @ 2014-01-19 10:09 玩物尚智 阅读(1116) 评论(1) 推荐(1)
摘要: I Think I Need a HouseboatTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 81874Accepted: 35368DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking 阅读全文
posted @ 2014-01-18 13:32 玩物尚智 阅读(1820) 评论(13) 推荐(1)
摘要: Financial ManagementTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 116320Accepted: 53669DescriptionLarry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfoli 阅读全文
posted @ 2014-01-18 13:29 玩物尚智 阅读(3685) 评论(2) 推荐(1)
摘要: HangoverTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 95164Accepted: 46128DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be perpendicular to the table 阅读全文
posted @ 2014-01-18 13:26 玩物尚智 阅读(4869) 评论(0) 推荐(1)
摘要: 487-3279Time Limit: 2000MSMemory Limit: 65536KTotal Submissions: 228365Accepted: 39826DescriptionBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University of Waterloo by d 阅读全文
posted @ 2014-01-18 13:22 玩物尚智 阅读(1521) 评论(0) 推荐(0)
摘要: ExponentiationTime Limit: 500MSMemory Limit: 10000KTotal Submissions: 126980Accepted: 30980DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer system 阅读全文
posted @ 2014-01-18 13:08 玩物尚智 阅读(2553) 评论(0) 推荐(0)
摘要: A+B ProblemTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 311263Accepted: 171333DescriptionCalculate a+bInputTwo integer a,b (0 9 using namespace std;10 11 int main()12 {13 int a,b;14 scanf("%d%d", &a, &b);15 printf("%d\n", a + b);16 return 0;17 }JAVA: 1 import 阅读全文
posted @ 2014-01-18 12:46 玩物尚智 阅读(1119) 评论(0) 推荐(0)
摘要: Mysql错误:Ignoring query to other database解决方法今天登陆mysql show databases出现Ignoring query to other database错误,又试了几个命令和sql全部提示Ignoring query to other database错误错误如下:D:\Program Files\MySQL\MySQL Server 5.6\bin>mysql -rootWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 阅读全文
posted @ 2014-01-13 19:24 玩物尚智 阅读(80486) 评论(7) 推荐(17)
摘要: 清除error.log、access.log并限制Apache日志文件大小的方法,在网上搜了下相应的资料,并按照如下步骤做了一遍,网站恢复正常清除error.log、access.log并限制Apache日志文件大小的方法 有个客户反映vps网站打不开,登录系统检查下,客户是win2003系统,发现放置网站文件的D盘已被占满,可用空间为0KB,进去发现客户Apache服务器的错误日志error.log非常的大,造成D盘被爆满。 在网上搜了下相应的资料,并按照如下步骤做了一遍,网站恢复正常 第一步:停止Apache服务的所有进程,删除 Apache2/logs/目录下的 error.log、ac 阅读全文
posted @ 2013-12-23 20:53 玩物尚智 阅读(1286) 评论(0) 推荐(0)
摘要: 最近在一台win2003的服务器上安装配置好了wamp,服务启动正常,服务器本机访问localhost正常,但是我自己的电脑(相对于服务器来说是远程机器)访问时,提示显示You don't have permission to access / on this server.造成这个问题的原因是Apache 的http.conf内的默认配置是# onlineoffline tag - don't remove Order Deny,Allow Deny from all Allow from 127.0.0.1 Allow from localhost只允许本机访问,点击wam 阅读全文
posted @ 2013-12-16 19:20 玩物尚智 阅读(3668) 评论(0) 推荐(0)
摘要: query($queryStr); $totalNum = $result->num_rows; $this->dispNum = $dispNum; $this->totalPages = ceil($totalNum / $dispNum); $this->queryStr = $queryStr; $this->mysqli = $mysqli; $temp = (isset($_GET["curPage"]) ? $_GET["cu... 阅读全文
posted @ 2013-10-20 12:37 玩物尚智 阅读(649) 评论(0) 推荐(0)
摘要: 自己写的一个PHP分页类,留作纪念 阅读全文
posted @ 2013-10-20 03:47 玩物尚智 阅读(2321) 评论(0) 推荐(0)
摘要: 本文是我自己在玩数独游戏时,觉得有点太难了,自己是程序猿,还不如写个程序,让电脑帮忙算,自己也是从简单到复杂,一步一步做过来的,发个博文,留作纪念。 阅读全文
posted @ 2013-02-05 11:54 玩物尚智 阅读(10720) 评论(7) 推荐(1)
摘要: 大三时的一篇日志 阅读全文
posted @ 2013-01-23 20:18 玩物尚智 阅读(250) 评论(0) 推荐(0)
摘要: 这是我大三第一学期写的一篇日志,发上来,与大家分享。 阅读全文
posted @ 2013-01-23 12:17 玩物尚智 阅读(1092) 评论(1) 推荐(0)