首页 > 其他
之乎者也
知之为知之 在乎不在乎 此人何其者 孔老夫子也 知之为不知 在在不在乎 此人何其者 寒山子是也 不知为知之 不在乎在乎 此人何其者 齐人是也 很久以前我们的祖先都曾经这么说 很久以前我们的祖先都曾经这么说 现在看看我们的青年他们在讲什么 但是要想想到底你要他们怎么做 剪刀等待之 清汤挂面乎 尊师重道者 莫过如此也 风花雪月之 哗啦啦啦乎 所谓你歌的 是否如此也 之之...
分类:其他   时间:2015-03-09 20:55:13    收藏:0  评论:0  赞:0  阅读:222
UVa 270 - Lining Up
题目:给你平面上n个点,求最多有几个点共线。 分析:计算几何。枚举基准点,其他点按基准点极角排序(斜率排序),然后枚举相邻直线判断统计即可。 说明:时间复杂度O(n*n*lg(n))。 #include #include #include #include #include #include using namespace std; typedef struct pnode...
分类:其他   时间:2015-03-09 20:54:53    收藏:0  评论:0  赞:0  阅读:264
EEPROM && FLASH
看到后面老是提到这两个名词,搜了一堆凑凑看吧。 存储器分为两大类:ram和rom。 ram:       随机存取存储器(random access memory,RAM)又称作“随机存储器”,是与CPU直接交换数据的内部存储器,也叫主存(内存)。它可以随时读写,而且速度很快,通常作为操作系统或其他正在运行中的程序的临时数据存储媒介。 存储单元的内容可按需随意取出或存入,且存取的速...
分类:其他   时间:2015-03-09 20:54:43    收藏:0  评论:0  赞:0  阅读:371
PV操作——软考探究(五)
操作系统中非常经典的实现对临界区的管理操作,由Dijkstra发明。 P操作:申请一个资源。它是执行操作的前提,只有有了资源才可以执行操作。就和现实生活是一样的,只有有了资源才能够进行生产。 V操作:释放一个资源。在执行完毕一个操作以后要将占用的资源释放掉,和银行家算法吻合, 同时发出信号。...
分类:其他   时间:2015-03-09 20:54:33    收藏:0  评论:0  赞:0  阅读:335
poj 2918 Tudoku 数独dfs
题意: 解数独游戏。 分析: 这道数独的数独直接dfs就能过。 代码: //poj 2918 //sep9 #include using namespace std; char s[12][12]; int board[12][12]; int CheckSquare[12][12]; int CheckRow[12][12]; int CheckColumn[12][12]; int ...
分类:其他   时间:2015-03-09 20:54:23    收藏:0  评论:0  赞:0  阅读:291
hdu1151 最小路径覆盖
http://acm.hdu.edu.cn/showproblem.php?pid=1151 Problem Description Consider a town where all the streets are one-way and each street leads from one intersection to another. It is also know...
分类:其他   时间:2015-03-09 20:53:33    收藏:0  评论:0  赞:0  阅读:244
(hdu step 6.1.2)Eddy's picture(在只给出二维坐标点的情况下,求让n个点连通的最小费用)
题目:Eddy's pictureTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 172 Accepted Submission(s): 126 Problem DescriptionEddy begins to like painting pi...
分类:其他   时间:2015-03-09 20:53:23    收藏:0  评论:0  赞:0  阅读:235
CH-Round-#63-OrzCC杯#2省选热身赛
题目一 描述 exchange 背景 有n个人一同出去玩,每个人有一张火车票。由于火车票实行实名制,每张火车票也对应一个人。 描述 由于某种原因,现在出现了以下情况:每个人手中有一张票,这张票可能是自己的也可能是别人的。现在任意两个人之间可以交换手中的票,求最少进行多少次交换使得每个人都拿到自己的票。假定交换是依次进行的,即同一时刻只...
分类:其他   时间:2015-03-09 20:53:13    收藏:0  评论:0  赞:0  阅读:291
Solaris 10 虚拟机探究(1)
Solaris10 zone虚拟化实例配置...
分类:其他   时间:2015-03-09 20:52:53    收藏:0  评论:0  赞:0  阅读:307
POJ1651:Multiplication Puzzle(区间DP 最优矩阵链乘)
题意:除了头尾不能动,每次取出一个数字,这个数字与左右相邻数字的乘积为其价值,最后将所有价值加起来,要求最小值 和最优矩阵链乘模型一样,最后取出的数决定了序,如果没学过最优矩阵连乘找重复子问题还是比较难找的 DP //180K 0MS #include #include #include #include using namespace std; int dp[110][110]; ...
分类:其他   时间:2015-03-09 20:52:43    收藏:0  评论:0  赞:0  阅读:269
求N个数的最小公倍数
【求N个数的最小公倍数】1、两两依次求解+提取公因数法。 2、质因数分解法。 例题 2、提取部分公因数法。 3、倍数Trick。 4、幂次Trick。
分类:其他   时间:2015-03-09 20:51:52    收藏:0  评论:0  赞:0  阅读:311
用宏实现HEX到ASCII ,ASCII 到HEX
#define HEX2ASCII(value, data)do{\ value = (value > 0x09)?(value+0x7):value; \ *data = value + 0x30; \ }while(0)#define ASCII2HEX(value, data)do{\ val...
分类:其他   时间:2015-03-09 20:50:42    收藏:0  评论:0  赞:0  阅读:280
Customers Who Never Order
Suppose that a website contains two tables, theCustomerstable and theOrderstable. Write a SQL query to find all customers who never order anything.Tab...
分类:其他   时间:2015-03-09 20:50:32    收藏:0  评论:0  赞:0  阅读:395
设计模式之桥接模式(Bridge)--结构模型
1.意图 将抽象部分与它的实现部分分离,使它们可以独立地变化. 2.适用性 你不希望在抽象和它的实现部分之间有一个固定的绑定关系。 类的抽象与它的实现都应该可以通过子类的方式加以扩展。 抽象部分与实现部分可以独立变化,而不会相互影响。 从多维度扩展应用程序。 3.结构 4.参与者 Abstracti...
分类:其他   时间:2015-03-09 20:50:22    收藏:0  评论:0  赞:0  阅读:267
[How To] TrueCrypt使用教學 - 重要資訊的加密保險箱(转)
我在2013年八月的時候寫了這篇關於TrueCrypt的使用教學,但從去年(2014)五月下旬開始,TrueCrypt的首頁出現了"Using TrueCrypt is not secure as it may contain unfixed security issues"這項警告,作者解釋道,隨...
分类:其他   时间:2015-03-09 20:49:42    收藏:0  评论:0  赞:0  阅读:227
Leetcode-Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他   时间:2015-03-09 20:49:14    收藏:0  评论:0  赞:0  阅读:198
timus 1260. Nudnik Photographer 动态规划
题目传送门做完这题感觉dp像是一些状态在转移,由一个(多个)目前状态推到后一(多)个状态。这个题目的意思是n个人要照相,n个人的年龄为1到n。站成一排,规定最左段是1岁的人,相邻两个人的年龄差不会超过2岁。问有多少总排队方案。解法:第i个人加入所产生的状态可以从第i-1个人加入产生的状态推过来。我们...
分类:其他   时间:2015-03-09 20:48:32    收藏:0  评论:0  赞:0  阅读:264
Quadtrees--四叉树
DescriptionA quadtree is a representation format used to encode images. The fundamental idea behind the quadtree is that any image can be split into f...
分类:其他   时间:2015-03-09 20:48:02    收藏:0  评论:0  赞:0  阅读:257
Ganglia 权威指南-安装Ganglia过程
转自于:http://blog.csdn.net/xxd851116/article/details/21527055 http://www.dataguru.cn/article-3816-1.htmlGanglia由gmond、gmetad和gweb三部分组成gmond(Ganglia M...
分类:其他   时间:2015-03-09 20:47:52    收藏:0  评论:0  赞:0  阅读:458
LeetCode-108 Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.知识点:二叉搜素树: 1. 如果root有左子节点,则所有左边的节点root; 3. root.lef.....
分类:其他   时间:2015-03-09 20:47:02    收藏:0  评论:0  赞:0  阅读:266
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!