首页 > 2015年01月06日 > 全部分享
HUST1017----Exact cover
1017 - Exact cover Time Limit: 15s Memory Limit: 128MB Special Judge Submissions: 6023 Solved: 3188 DescriptionThere is an N*M matrix with only 0s and 1s, (1 <= N,M <= 1000). An exact cov...
分类:其他   时间:2015-01-06 10:05:25    收藏:0  评论:0  赞:0  阅读:273
poj 3087 Shuffle'm Up(模拟题)
Shuffle'm Up Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 6143   Accepted: 2880 Description A common pastime for poker players at a poker table is to shuf...
分类:其他   时间:2015-01-06 10:05:15    收藏:0  评论:0  赞:0  阅读:167
APP拨打电话&发短信&发邮件
在移动开发中我们会经常需要调用手机的拨打电话功能、发短信功能和发邮件功能,以下是我总结的方法://1.打电话 //方法1 最常用方法 NSURL *telUrl = [NSURL URLWithString:"tel://13161906451"]; UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero]; [webV...
分类:移动平台   时间:2015-01-06 10:05:05    收藏:0  评论:0  赞:0  阅读:293
设计模式之适配器模式
本文简要的介绍了设计模式里比较常用的适配器模式,通俗易懂,欢迎拍砖...
分类:其他   时间:2015-01-06 10:04:25    收藏:0  评论:0  赞:0  阅读:161
[C++]LeetCode: 70 3Sum
题目: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: Elements in a tripl...
分类:编程语言   时间:2015-01-06 10:04:15    收藏:0  评论:0  赞:0  阅读:295
Hibernate——ORMapping
Hibernate ORMapping...
分类:移动平台   时间:2015-01-06 10:04:05    收藏:0  评论:0  赞:0  阅读:249
Factorial Trailing Zeroes
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42417535 Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic...
分类:其他   时间:2015-01-06 10:03:55    收藏:0  评论:0  赞:0  阅读:190
安卓Preference详解
Preference 用来管理应用程序的偏好设置和保证使用这些的每个应用程序的所有参数 拥有同样的方式和用户体验   并且系统和其他应用程序的UI保持偏一致。 一个应用程序的偏好部分应作为一个独立的活动扩展preferenceactivity类 类中的对象应该是preferencescreen ,preferencescreen包含偏好等元素的布局的根元素 比如checkboxpreferenc...
分类:移动平台   时间:2015-01-06 10:03:45    收藏:0  评论:0  赞:0  阅读:384
学习笔记二十二:GUI(三)
形成天才的决定因素应该是勤奋。——郭沫若 本讲内容:常用组件 一、面板组件JPanel(非顶层组件) 一个界面只可以有一个JFrame窗体组件,但可以有多个JPanel面板组件,而JPanel上也可使用FlowLayout,BorderLayout,GridLayout等各种布局管理器,这样可以组合使用达到较为复杂的布局效果。 JPanel是JComponent的子类,...
分类:其他   时间:2015-01-06 10:03:35    收藏:0  评论:0  赞:0  阅读:185
iOS学习笔记-数据持久化
在iOS学习过程中,有时候需要保持用户数据,比如登录信息、用户的设置选项等,这时候就需要学习数据持久化操作,本节主要学习iOS数据持久化相关的知识。        数据持久化的方式有四种:               1).写入plist文件(属性列表)               2).偏好设置                3).归档(NSKeyedArchiver)...
分类:移动平台   时间:2015-01-06 10:03:25    收藏:0  评论:0  赞:0  阅读:363
深入浅出Android Gradle构建系统(三:build task)
Gradle中常用的一些task的介绍,Gradle Java插件以及Gradle Android插件常用的一些task的介绍...
分类:移动平台   时间:2015-01-06 10:03:15    收藏:0  评论:0  赞:0  阅读:306
poj 1695 Magazine Delivery dp
题意: 有n个地方,每两个点之间需要的时间已知,现在有3辆车在地点1,要把杂志送到2,3...n,同一时刻只能有一辆车在走,且送到i之前必须送到i-1,求完成任务需要的最少时间。 分析: dp[a][[b][c]表示三辆车由近到远在a,b,c三个地方所要的最少时间。当n==6时,2,2,1,3,1,3。3,3,1,2,1,2。2,2,1,1,1,3这些访问序列都能被dp[2][5][6]表示...
分类:其他   时间:2015-01-06 10:03:05    收藏:0  评论:0  赞:0  阅读:249
Python中的try...finally...的理解
python中无论文件是否正常打开,try...finally...都能保证正常关闭,其用法请点击本博客...
分类:编程语言   时间:2015-01-06 10:02:55    收藏:0  评论:0  赞:0  阅读:288
Android数据持久化的方式总结
一、SharedPreferences      以.xml格式的文件进行存储,存储位置在data/data/package/shared_prefs/目录下。      存储步骤:      1、创建文件:getSharedPreferences(name, mode);name为文件名,如果有此文件存在,不再创建,直接用此文件。      2、获取文件编辑器:SharedPre...
分类:移动平台   时间:2015-01-06 10:02:45    收藏:0  评论:0  赞:0  阅读:266
如何获取外网IP地址
常用手动查询方法是直接查询:http://www.ip138.com/ 代码实现方法如下: 方法I:C语言实现 //原理: 通过访问"http://city.ip138.com/ip2city.asp"解析返回内容 #include #pragma comment (lib,"Urlmon.lib") void GetBigIpAddress(char *szBuff) { ...
分类:其他   时间:2015-01-06 10:02:35    收藏:0  评论:0  赞:0  阅读:385
iOS学习笔记-iOS事件处理之触摸事件
在iOS学习中,接触最多的就是触摸事件,这节主要学习一下触摸事件的简单使用。         1.iOS中的事件                    2.触摸事件           2.1 触摸事件的完整处理过程:           1> 先将事件对象由上往下传递(由父控件传递给子控件), 找到最合适的控件来处理这个事件           2> 调用最合适控件的touches...
分类:移动平台   时间:2015-01-06 10:02:25    收藏:0  评论:0  赞:0  阅读:133
poj 3414 Pots(BFS+递归打印)
Pots Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 10255   Accepted: 4333   Special Judge Description You are given two pots, having the volume of A and ...
分类:其他   时间:2015-01-06 10:02:15    收藏:0  评论:0  赞:0  阅读:249
推荐几个优秀的UI素材网站!做网站不发愁了。
(1)优设网http://www.uisdc.com/ (2)站酷网http://www.zcool.com.cn/ (3)千图网http://www.58pic.com/ (4)懒人图库http://www.lanrentuku.com/ (5)UiMakerhttp://www.uimaker.com/ (6)iconzahttp://iconza.com/ (7)模板之家http...
分类:Web开发   时间:2015-01-06 10:02:05    收藏:0  评论:0  赞:0  阅读:286
华为机试—最长回文子串
输入一个字符串,输出最长回文子串。当最长回文子串不止一个时,全部输出。 #include #include using namespace std; #define N 100 string convert(string s) { string out=""; int len=s.length(); for (int i=len-1;i>=0;i--) { ...
分类:其他   时间:2015-01-06 10:01:55    收藏:0  评论:0  赞:0  阅读:295
华为机试—输出一个数字各个位数和
两种解法: 1、逐位相加 #include #include using namespace std; int main() { int s; cin>>s; int sum=0; while (s!=0) { sum=sum+s%10; s=s/10; } cout<<sum; return 0; } 2、转换成字符串相加 #includ...
分类:其他   时间:2015-01-06 10:01:45    收藏:0  评论:0  赞:0  阅读:247
1978条   上一页 1 ... 81 82 83 84 85 ... 99 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!