- 博客(35)
- 收藏
- 关注
原创 cocos2d-x,CCMenu::initWithItems,无语啊
http://www.cocos2d-x.org/boards/6/topics/7956?r=7988#message-7988这函数不能用你写文档里干毛啊,233,这不科学啊!!!
2012-04-07 05:31:47 1028
原创 QT中signal和slot的一些注意点保存
<br />发起 <br />.h <br />signals:<br /> void additem_signal();<br />.cpp<br />emit additem_signal();<br /><br />接受<br />.h<br />private slots:<br /> void addword_slot();<br />.cpp<br />发起的.h<br />senwords_addForm *senw;<br />se
2010-07-27 10:47:00 548
原创 LINUX系统调用sys_mkdir()中所得的pathname参数不是全路径,要将其转为全路径的解决办法。
<br />asmlinkage long new_mkdir(const char __user *pathname,int mode){ /*创建一个nameidata结构体*/ struct nameidata nd; /*nd这里赋值完后里面就含有全路径的信息了*/ int ret = path_lookup(pathname,LOOKUP_DIRECTORY,&nd); /*打印出的是所创建的文件夹的名称,比如mydir*/
2010-07-19 20:49:00 1665
原创 教训阿,在LINUX下看来不能所有的程序都CHMOD777和SUDO
首先这么做安全隐患自不必说了。主要要说的是这次安装QT4.6的问题,下载了官网QT4.6的BIN文件,开始安装。首先给BIN文件加执行权限,直接就CHMOD 777过去了,然后SUDO执行,安装完后,发现QMAKE不能用。于是卸载,想到是不是权限问题,于是把权限改低点执行,CHMOD u+x,然后不用SUDO直接来启动BIN,安装完毕后,一切OK。看来以后不能老是给高权限了阿。。。
2009-12-23 02:28:00 1213
原创 PKU3356 AGTC (简单DP)
AGTCTime Limit: 1000MSMemory Limit: 65536KTotal Submissio
2009-11-22 22:40:00 600
原创 PKU2688 Cleaning Robot(BFS + DFS)
/* Cleaning RobotTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1592
2009-11-04 21:16:00 700
原创 PKU2192 Zipper(DP+记忆化)
/* ZipperTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6751 Accepted: 2244DescriptionGiven three strings, you are to determine whether the third string can b
2009-09-22 22:14:00 1074 2
原创 PKU1887 Testing the CATCHER (最长不升子序列)
/* Testing the CATCHERTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 6430 Accepted: 2349
2009-09-14 13:53:00 889
原创 PKU1631Bridging signals(最长不降子序列)
/*Bridging signalsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4649 Accepted: 2563DescriptionOh no, theyve done it again, cries the chief designer at the Wafe
2009-09-03 18:47:00 369
原创 pku1160 Post Office 中等难度的DP
/*Post OfficeTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 6697 Accepted: 3531DescriptionThere is a straight highway with villages alongside the highway. The high
2009-08-25 18:00:00 650
原创 PKU1579 Function Run Fun (DP水题)
/* Function Run FunTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 6329 Accepted: 3475DescriptionWe all love recursion! Dont we?Consider a three-paramet
2009-07-28 08:22:00 686
原创 pku1609 Tiling Up Blocks (DP题)
Tiling Up BlocksTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 1937Accepted: 755DescriptionMichaelThe Kid receives an interesting game s
2009-07-02 19:02:00 553
原创 PKU1080 Human Gene Functions
/*Human Gene FunctionsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 6974 Accepted: 3861DescriptionIt is well known that a human gene can be considered as a sequen
2009-07-01 16:13:00 628
原创 pku1062 昂贵的聘礼(Memory Limit Exceeded。。。。。。)
/*昂贵的聘礼Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 8052 Accepted: 1922Description年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这
2009-06-27 19:22:00 1785 1
原创 PKU2676 Sudoku 数独
/*SudokuTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 4283 Accepted: 1934 Special JudgeDescriptionSudoku is a very simple task. A square table with 9 r
2009-05-24 01:54:00 958
原创 pku3414 POTS(哦也。。。。。。。。又输了。。这是第几次无耻发别人代码AC了。。。。。。我垃圾我笨我傻我真TMD不是东西!!!!
/*PotsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1980 Accepted: 866 Special JudgeDescriptionYou are given two pots, having the volume of A and B liters respectively
2009-05-22 02:41:00 519
原创 PKU3087 Shuffle'm Up (不知道哪错。。。。。。。。。。
/*Shufflem UpTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1467 Accepted: 678DescriptionA common pastime for poker players at a poker table is to shuffle stacks of chips. Sh
2009-05-20 22:03:00 753
原创 pku3126 Prime Path BFS
#include #include #include #include using namespace std;int visited[10000] = {0};int endcost[10000] = {0};int prime(int number){ if(number % 2 == 0) { return 0; } else { f
2009-05-17 20:46:00 449
原创 PKU1426 Find The Multiple (memory limit超过了。。。。)
#include #include using namespace std;void bfs(int number,queue m){ if(m.front() % number == 0) { cout return; } else { m.push(m.front() * 10); m.push(m.
2009-05-14 19:00:00 479
原创 PKU3278 Catch That Cow 基础广搜
Catch That CowTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 9268 Accepted: 2791DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch h
2009-05-06 00:11:00 634
原创 Pku2251 Dungeon Master
/*Dungeon MasterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2410 Accepted: 1005DescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon
2009-05-02 08:02:00 763
原创 PKU1251 Jungle Roads 最小生成树样例题(艾这就叫差距阿。。。。。。。。。。
/*Jungle RoadsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 5039 Accepted: 2257DescriptionThe Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign
2009-04-22 23:11:00 2934 1
原创 pku1321 棋盘问题 依然是DFS
/*棋盘问题Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4323 Accepted: 2045Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可
2009-04-16 18:02:00 1129 1
原创 pku3009 Curling 2.0 WA了艾。。。最近很不顺阿。。。。。。。。。
/*Curling 2.0Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1905 Accepted: 736DescriptionOn Planet MM-21, after their Olympic games this year, curling is getting popular. But
2009-04-14 23:39:00 1244 2
原创 PKU 3083 Children of the Candy Corn 这题感触很多。。。。。。。。。。。。。。
#include #include int right[4][2] = { {1,0},{0,1},{-1,0},{0,-1} };int left[4][2] = { {1,0},{0,-1},{-1,0},{0,1} };char map[45][45];int si, sj, ei, ej;int dir;int q[2500][2];int
2009-04-12 01:31:00 977
原创 PKU1190 生日蛋糕
/*生日蛋糕Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 3568 Accepted: 1206Description7月17日是Mr.W的生日,ACM-THU为此要制作一个体积为Nπ的M层生日蛋糕,每层都是一个圆柱体。设从下往上数第i(1 Ri+1且Hi > Hi+1。由于要在蛋糕上抹奶油,为尽可
2009-04-06 18:34:00 1611
原创 PKU1315 Don't Get Rooked
/*Dont Get RookedTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 952 Accepted: 640DescriptionIn chess, the rook is a piece that can move any number of squares vertically or ho
2009-04-02 20:55:00 703
原创 pku2362 Square(又是TLE.....................)
/*SquareTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 7770 Accepted: 2774DescriptionGiven a set of sticks of various lengths, is it possible to join them end-to-end to form a
2009-04-01 01:08:00 656
原创 PKU3051 Satellite Photographs 简单DFS
/*Satellite PhotographsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1255 Accepted: 595DescriptionFarmer John purchased satellite photos of W x H pixels of his farm (1 Each p
2009-03-31 00:26:00 796 1
原创 pku2488 A Knight's Journey
/*A Knights JourneyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4733 Accepted: 1635DescriptionBackgroundThe knight is getting bored of seeing the same black and white squar
2009-03-25 19:51:00 1056
原创 PKU1011 Sticks 经典DFS(TLE了。。没办法)
/*SticksTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 48226 Accepted: 10568DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at mo
2009-03-20 01:16:00 1064
原创 PKU3620 Avoid The Lakes DFS入门题
/* Avoid The LakesTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1550 Accepted: 870 Description Farmer Johns farm was flooded in the most recent storm, a fact only aggr
2009-03-16 19:30:00 910 1
转载 PKU1692 Crossed Matchings
/*Crossed MatchingsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 998 Accepted: 614DescriptionThere are two rows of positive integer numbers. We can draw one line segment betw
2009-03-12 20:53:00 576
原创 PKU1328 Radar Installation
/*Radar InstallationTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 10128 Accepted: 1990Description Assume the coasting is an infinite straight line. Land is in one side of coa
2009-03-10 19:52:00 676
原创 解题报告BLOG开启。。第一题 PKU1922 Ride to School
PKU1922 Ride to SchoolTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 9621 Accepted: 37
2009-03-07 18:09:00 1073 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人