码迷,mamicode.com
首页 >  
搜索关键字:art    ( 45817个结果
图像旋转算法的实现
上一篇转载的文章(http://blog.csdn.net/carson2005/article/details/36900161)介绍了图像旋转的原理,这里给出代码实现; 直接上代码了,细节请参考上面的链接; void ImgRotate(cv::Mat grayImg, float theta, cv::Mat imgOut) { int oldWidth = grayImg.c...
分类:其他好文   时间:2014-07-06 12:13:48    阅读次数:217
Android中控制Dialog呈现的时间
用线程控制dialog的呈现时间,思路很简单,直接show代码了,我也是为了方便自己记录 private void showProgressDialog() { pDialog = new ProgressDialog(mContext); pDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); pDialog.setPro...
分类:移动开发   时间:2014-07-06 11:19:56    阅读次数:204
uva 11732 - strcmp() Anyone? 不错的Trie题
题解:http://blog.csdn.net/u013480600/article/details/23122503 我的代码一直TLE,,,看了人家的之后,觉得1、链式前向星比较好,2、*depth而不是每过一个节点就计算,这一点很好 我是基本copy别人的代码,自己加了注释,留个记号,随后重写, 这道题同样作为链式前向星的Trie的模板 #include #include...
分类:其他好文   时间:2014-07-06 11:18:05    阅读次数:234
HDU - 4709 Herding
Description Little John is herding his father's cattles. As a lazy boy, he cannot tolerate chasing the cattles all the time to avoid unnecessary omission. Luckily, he notice that there were N trees...
分类:其他好文   时间:2014-07-06 10:39:09    阅读次数:188
UVa 10152 - ShellSort 题解
按他的方法排序,每次移动一个数到顶点,排成需要的序列。 Problem D: ShellSort He made each turtle stand on another one's back And he piled them all up in a nine-turtle stack. And then Yertle climbed up. He sat down on the p...
分类:其他好文   时间:2014-07-06 09:15:42    阅读次数:211
windows系统自带工具
辅助功能向导:单击“开始→运行”,在弹出的对话框中输入:accwiz 计算器:单击“开始→运行”,在弹出的对话框中输入:calc 字符影射表:单击“开始→运行”,在弹出的对话框中输入:charmap 磁盘清理:单击“开始→运行”,在弹出的对话框中输入:cleanmgr SQL Server 客户端网络实用工具:单击“开始→运行”,在弹出的对话框中输入:cliconfg 剪贴薄查看器:单击...
分类:Windows程序   时间:2014-07-06 09:10:25    阅读次数:313
解决:insert Vodafone sim card,open the mms read report,when receive the read report,cann't download..
insert Vodafone sim card,open the mms read report,when receive the read report,cann't download the message Test steps: 1.insert Vodafone sim card 2.open the mms read report 3.send the mms successf...
分类:其他好文   时间:2014-07-06 08:36:10    阅读次数:292
android 拍照注意问题
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);          startActivityForResult(intent, reqCode);//reqCode是返回的code。          但是在有些手机会在protected void onActivityResult(int requestCode...
分类:移动开发   时间:2014-07-06 00:28:15    阅读次数:321
UVa 11988 - Broken Keyboard (a.k.a. Beiju Text) 题解
刘汝佳的题目,悲剧文本 -_-||| 这里使用vector容器倒置记录数据,然后从后面输出就可以了。 难度就是不知道这样的文档到底哪里是开始输出,故此使用动态管理内存的容器比较好做。 增加了io处理的O(n)算法也没有上榜,郁闷。 #include #include #include using std::vector; using std::string; const int M...
分类:其他好文   时间:2014-07-06 00:27:31    阅读次数:283
uva 10581 - Partitioning for fun and profit(记忆化搜索+数论)
题目链接:uva 10581 - Partitioning for fun and profit 题目大意:给定m,n,k,将m分解成n份,然后按照每份的个数排定字典序,并且划分时要求ai?1≤ai,然后输出字典序排在k位的划分方法。 解题思路:因为有ai?1≤ai的条件,所以先记忆化搜索处理出组合情况dp[i][j][s]表示第i位为j,并且剩余的未划分数为s的总数为dp[i][...
分类:其他好文   时间:2014-07-05 23:56:30    阅读次数:464
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!