首页 > 其他
UVA - 12108 Extraordinarily Tired Students(模拟)
Extraordinarily Tired Students Time Limit: 3000MS   Memory Limit: Unknown   64bit IO Format: %lld & %llu Submit Status Description When a student is too tired, he can't...
分类:其他   时间:2015-04-10 22:30:22    收藏:0  评论:0  赞:0  阅读:346
ext2文件系统寻址
ext2 文件系统相关介绍:ext2文件系统,一个文件除了数据需要存储之外,一些描述信息也需要存储,例如文件类型(常规、目录、符号链接等),权限,文件大小,创建/修改/访问时间等,也就是ls -l命令看到的那些信息,这些信息存在inode中而不是数据块中。但是文件名存在哪里,首先文件名不是存在inode中的,那么文件名存在哪里? 这里我们可以看到目录大小都为4096,当你创建一个目录的时候操...
分类:其他   时间:2015-04-10 22:30:12    收藏:0  评论:0  赞:0  阅读:367
POJ 3663 Costume Party (二分查找)
Costume Party Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 12297   Accepted: 4891 Description It's Halloween! Farmer John is taking the cows to a costume ...
分类:其他   时间:2015-04-10 22:29:42    收藏:0  评论:0  赞:0  阅读:327
USACO--3.1Humble Numbers
这个题的难点在于如何顺序的产生Humble Numbers。考虑我们已经得到前k个Humble Numbers,如果得到第k+1个Humble Numbers?对每个素数,在前k个Humble Numbers中选择一个数与其相乘的结果恰好大于第k个Humble Numbers,然后我们的第k+1个数就是这些结果中的最小值。当然如果对每个素数每次都要遍历一遍前k个Humble Numbers,肯定会超...
分类:其他   时间:2015-04-10 22:29:32    收藏:0  评论:0  赞:0  阅读:316
POJ 3664 Election Time
Election Time Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 7845   Accepted: 4176 Description The cows are having their first election after overthrowing t...
分类:其他   时间:2015-04-10 22:29:22    收藏:0  评论:0  赞:0  阅读:204
POJ 2503 Babelfish(字典树)
Babelfish Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 35009   Accepted: 14979 Description You have just moved from Waterloo to a big city. The people her...
分类:其他   时间:2015-04-10 22:29:02    收藏:0  评论:0  赞:0  阅读:324
HDU 1228 A + B (水题)
A + B Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 13260 Accepted Submission(s): 7797 Problem Description 读入两个小于100的正整数A和B,计算A+B. 需要注意...
分类:其他   时间:2015-04-10 22:28:32    收藏:0  评论:0  赞:0  阅读:244
leetcode-13 Roman to Integer
?? 问题描述:Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to3999. 问题分析:{'M','D','C','L','X','V','I'};分别对应{1000, 500, 100, 50, 10, 5, 1}; 当出...
分类:其他   时间:2015-04-10 22:27:54    收藏:0  评论:0  赞:0  阅读:272
hdu 1240 Asteroids!
不开心,简单的三维bfs #include #include using namespace std; string str1,str2; int n; int sx,sy,sz,ex,ey,ez; char mapp[11][11][11]; int dir[6][3]={{0,0,1},{0,0,-1},{1,0,0},{-1,0,0},{0,1,0},{0,-1,0}}; int re...
分类:其他   时间:2015-04-10 22:27:52    收藏:0  评论:0  赞:0  阅读:238
猫猫整理问题之:copy,对象自定义copy
猫猫分享,必须精品 原文地址:http://blog.csdn.net/u013357243?viewmode=contentscopycopy的正目的copy 目的:建立一个副本,彼此修改,各不干扰 Copy(不可变)和MutableCopy(可变)针对Foundation框架的数据类型。 对于自定义类,copy就是可变的。可变数组的copy这里用NSMutableArray为例子。// 可...
分类:其他   时间:2015-04-10 22:27:14    收藏:0  评论:0  赞:0  阅读:281
第11题:求二叉树中节点的最大距离
欢迎转载,转载请务必注明出处:http://blog.csdn.net/alading2009/article/details/44984331 第11题:如果我们把二叉树看成一个图,父子节点之间的连线看成是双向的,我们姑且定义“距离”为两点之间边的个数。写一个程序,求一棵二叉树中相距最远的两个节点之间的距离。 树的高度是一个重要信息,然后就可以祭出递归大法了。 代码 pac...
分类:其他   时间:2015-04-10 22:26:52    收藏:0  评论:0  赞:0  阅读:333
ZOJ3471 状态压缩DP
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3471 Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When t...
分类:其他   时间:2015-04-10 22:26:42    收藏:0  评论:0  赞:0  阅读:316
[转]不能将参数1从“const char []”转换为“LPCTSTR
今天在使用vs2008+MFC时候,使用editControl的replacesel(“”)发生报错。如下::不能将参数1从“const char []”转换为“LPCTSTR”其解决方案就是, 在项目属性里面找到项目默认值下面的字符集, 将其换为:使用多字节字符集就ok了。原因:typedefLP...
分类:其他   时间:2015-04-10 22:24:52    收藏:0  评论:0  赞:0  阅读:492
Codeforces Round #236 (Div. 2)E. Strictly Positive Matrix(402E)
E. Strictly Positive MatrixYou have matrixaof sizen?×?n. Let's number the rows of the matrix from1tonfrom top to bottom, let...
分类:其他   时间:2015-04-10 22:24:12    收藏:0  评论:0  赞:0  阅读:223
1684: [Usaco2005 Oct]Close Encounter
1684: [Usaco2005 Oct]Close EncounterTime Limit:5 SecMemory Limit:64 MBSubmit:387Solved:181[Submit][Status][Discuss]DescriptionLacking even a fifth gra...
分类:其他   时间:2015-04-10 22:23:42    收藏:0  评论:0  赞:0  阅读:305
素数的判断
1、遍历2以上N的平方根以下的每一个整数,是不是能整除N 1 bool Isprimer(int n) 2 { 3 int flag=1; 4 if (n<2) 5 return false; 6 if (n==2) 7 return true...
分类:其他   时间:2015-04-10 22:23:12    收藏:0  评论:0  赞:0  阅读:216
《软件工程》第二次作业
--题目:请编写一个能自动生成小学四则运算题目的软件;让程序能接受用户输入答案,并判定对错;最后给出总共 对/错的数量。--需求分析:编写小学四则运算的测试系统,该系统能完成100以内的加、减、乘、除运算;该系统能接受用户输入答案,并能自动判断对错;当对用户输入的答案进行判断时,对错误的题目给出正确...
分类:其他   时间:2015-04-10 22:23:02    收藏:0  评论:0  赞:0  阅读:291
HDU 4405(Aeroplane chess)
Aeroplane chessTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2060Accepted Submission(s): 1346Pro...
分类:其他   时间:2015-04-10 22:22:52    收藏:0  评论:0  赞:0  阅读:190
关系运算符 逻辑运算符 if 语句 switch语句
1、 BOOL类型 BOOL isRightOrNo = YES; isRightOrNo = 56;//可以打印出来,在C语言中,非0即真 printf("%d\n" , isRightOrNo);2、 关系运算符 //&& 同时为真才为真 //|| 同时为假才为假 // ! 非 短...
分类:其他   时间:2015-04-10 22:22:32    收藏:0  评论:0  赞:0  阅读:233
hihoCoder#1139 二分·二分答案
原题地址挺简单一道题,结果因为一时傻逼写错一个小地方,导致WA成狗了_(:з」∠)_代码: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 #define MAX_V 10008 8 #define MAX_E 2...
分类:其他   时间:2015-04-10 22:22:12    收藏:0  评论:0  赞:0  阅读:156
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!