首页 > 其他
从相册照片中解析二维码
首先网上搜索了一些相册读取二维码的东西,比如使用zxing获取,http://code4app.com/ios/ZXing-Demo/515561f76803fa5e77000002,但是这个demo其实非常老了, 第一,需要修改其中的一个编译出错代码代码(很简单,...
分类:其他   时间:2015-03-26 23:44:01    收藏:0  评论:0  赞:0  阅读:517
关于操作系统学习路线分析
自己学习操作系统的时间也挺长了,虽然目前的成果还不是特别明显,但是在这段时间中还是学习了很多,今天想在这里和大家分享一下如何学习操作系统,以及如何制定学习操作系统的路线。 以下是针对有过编程经历的。 1,首先操作系统是人机交互的代理,那么作为操作系统必定是要和机器硬件打交道的,那么我们肯定是要学习一部分硬件知识,所以没有硬件知识的应该去补习一下硬件的知识,不用深究到电路,只需要了解电脑...
分类:其他   时间:2015-03-26 23:42:50    收藏:0  评论:0  赞:0  阅读:540
POJ-1384 完全背包
Memory 748K Time 172MS #include #include using namespace std; int p[501]; int w[501]; int nums[10001]; int main() { int times; cin >> times; for(int i = 0; i < times; ++i){...
分类:其他   时间:2015-03-26 23:42:30    收藏:0  评论:0  赞:0  阅读:469
读书笔记之——《暗时间》
前几天在读《暗时间》,在读完之后做一些记录和整理思考,作进一步的思考和深入,以作为自己以后学习和思考的指导。书的总体思想是在教我们一些学习的方法,同时做了一些行为方面的指导,又列举了一些具体的问题,为我们做一些具体的指导,告诉了我们如何去思考和学习,读这本书我们即是在认识学习也是在认识思考同时在学习心理学。     我对这本的内容做总结和思考如下,下边是我做的一个思维导图:...
分类:其他   时间:2015-03-26 23:42:00    收藏:0  评论:0  赞:0  阅读:605
580 - Critical Mass
本节的主题是“递推”, 利用函数的递归来实现,求解未知形式的函数。要好好感悟递归思想的巧妙。 另外递归的关键是设置边界,下面的几个例题也是一样,要自己判断好边界值。   该题需要用long long型变量,否则会RE #include using namespace std; long long n,p,k; long long f(int cur) { if(cur==0||cur==...
分类:其他   时间:2015-03-26 23:41:50    收藏:0  评论:0  赞:0  阅读:320
host文件的修改
在最近的项目当中,需要修改host文件来实现网址拦击,不说了直接上代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Win...
分类:其他   时间:2015-03-26 23:41:30    收藏:0  评论:0  赞:0  阅读:331
HDOJ 题目3158 PropBot(DFS)
PropBot Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 190    Accepted Submission(s): 60 Problem Description You have been selecte...
分类:其他   时间:2015-03-26 23:41:10    收藏:0  评论:0  赞:0  阅读:529
poj 1625 Censored! AC自动机+dp+高精度
poj1625 AC自动机+dp+高精度 超繁题,104行搞定,高效简洁不容错过~~~...
分类:其他   时间:2015-03-26 23:41:00    收藏:0  评论:0  赞:0  阅读:516
把struts2的struts.xml配置文件分解成多个配置文件
把struts2的struts.xml配置文件分解成多个配置文件      在默认的情况下,Struts只自动加载路径下的struts.xml,default-struts.xml和struts-plugin.xml三类文件。但是随着应用的增大,系统中Action数量也增大,将导致struts.xml变得非常的臃肿。      为了避免struts.xml文件过于庞大,提高struts.xml...
分类:其他   时间:2015-03-26 23:40:50    收藏:0  评论:0  赞:0  阅读:429
01-复杂度2. Maximum Subsequence Sum (25)
题目来源: Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 Maximum Subsequence is the continuous subsequence which has the l...
分类:其他   时间:2015-03-26 23:40:30    收藏:0  评论:0  赞:0  阅读:425
[lcm本质] light oj 1236 Pairs Forming LCM
long long pairsFormLCM( int n ) {     long long res = 0;     for( int i = 1; i  n; i++ )         for( int j = i; j  n; j++ )            if( lcm(i, j) == n ) res++; // lcm means least common ...
分类:其他   时间:2015-03-26 23:40:21    收藏:0  评论:0  赞:0  阅读:325
大数相乘
#include #include #include int main() { int i,j; char num1[100]={0}; char num2[100]={0}; gets(num1); gets(num2); int  number1[100]; int  number2[100]; int  result[201]={0}; for(i=0;i...
分类:其他   时间:2015-03-26 23:40:10    收藏:0  评论:0  赞:0  阅读:347
如何获取耳机是否已插入和耳机实时插拔情况?
1、在一般的程序中检测手机是否已插入耳机的情况: AudioManager localAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); boolean hasHeadset = localAudioManager.isWiredHeadsetOn(); 这两句话就可以知道此刻的...
分类:其他   时间:2015-03-26 23:39:50    收藏:0  评论:0  赞:0  阅读:672
[欧拉函数] uva 11426 GCD - Extreme (II)
题意: 求1~n之间两两gcd的和,gcd(a,b)和gcd(b,a)算一个。 思路: 设gcd(x,n)=i的x的个数为g(n,i),则g(n,i)=phi(n/i)。phi(x)为x的欧拉函数值。 注:这里x 所以采用打表的方法 ans[i]=ans[i-1]+g[i] g[i]为1~i之间的数与i的gcd之和。 而求g[i]的方法就需要用筛选法了 代码: #inclu...
分类:其他   时间:2015-03-26 23:39:40    收藏:0  评论:0  赞:0  阅读:295
【SICP练习】115 练习3.41
练习3-41原文Exercise 3.41. Ben Bitdiddle worries that it would be better to implement the bank account as follows (where the commented line has been changed):(define (make-account balance) (define (wi...
分类:其他   时间:2015-03-26 23:39:30    收藏:0  评论:0  赞:0  阅读:292
【SICP练习】116 练习3.42
练习3-42原文Exercise 3.42. Ben Bitdiddle suggests that it’s a waste of time to create a new serialized procedure in response to every withdraw and deposit message. He says that make-account could be chang...
分类:其他   时间:2015-03-26 23:39:21    收藏:0  评论:0  赞:0  阅读:332
Codeforces Round #113 (Div. 2)---C. Median
A median in an array with the length of n is an element which occupies position number after we sort the elements in the non-decreasing order (the array elements are numbered starting with 1). A median...
分类:其他   时间:2015-03-26 23:39:10    收藏:0  评论:0  赞:0  阅读:479
BZOJ 3550 ONTAK2010 Vacation 线性规划转费用流
题目大意给出一个长度为3×N 3 \times N的序列,规定N N个数字中不能选择超过k k 个,问最多能取出的数的权值和是多少。思路非常神的建图,本来想朴素费用流不过去学zkw费用流,结果朴素费用流跑的飞起。 利用一些辅助变量我们可以列出一些式子: 设k k是N N个数种最多能够取出的数的数量,a[i] a[i]表示第i i天选不选,y y数组一定是自然数。 ∑ N i=1 a[i]+...
分类:其他   时间:2015-03-26 23:38:50    收藏:0  评论:0  赞:0  阅读:467
【SICP练习】117 练习3.44
练习3-43原文Exercise 3.44. Consider the problem of transferring an amount from one account to another. Ben Bitdiddle claims that this can be accomplished with the following procedure, even if there are mu...
分类:其他   时间:2015-03-26 23:38:40    收藏:0  评论:0  赞:0  阅读:299
【SICP练习】118 练习3.45
练习3-45 原文 Exercise 3.45. Louis Reasoner thinks our bank-account system is unnecessarily complex and error-prone now that deposits and withdrawals aren’t automatically serialized. He suggests that...
分类:其他   时间:2015-03-26 23:38:30    收藏:0  评论:0  赞:0  阅读:365
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!