代理方法:
#pragma mark --- 创建UICollectionView
- (void)createCollectionView{
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc]init];
layout.itemSize = CGSizeMake(80...
分类:
其他 时间:
2015-08-10 22:16:08
收藏:
0 评论:
0 赞:
0 阅读:
172
猜数字
Problem Description
A有1数m,B来猜.B每猜一次,A就说"太大","太小"或"对了" 。
问B猜n次可以猜到的最大数。
Input
第1行是整数T,表示有T组数据,下面有T行
每行一个整数n (1 ≤ n ≤ 30)
Output
猜n次可以猜到的最大数
S...
分类:
其他 时间:
2015-08-10 22:15:58
收藏:
0 评论:
0 赞:
0 阅读:
189
注:下面的图G都为无向连通图
一、点支配
【支配】
对于图G中顶点集合V中的某一个点A与另一个点B有边链接,叫做点A支配B。
【点支配集】
对于图G中顶点集合V中的某个顶点子集V',可以支配V-V'中的其他点,这个点集V'就是点支配集。
【极小支配集】
对于支配集V,他的任何真子集都不是支配集,就称为V是极小支配集。
【最小支配集】
顶点数...
分类:
其他 时间:
2015-08-10 22:14:58
收藏:
0 评论:
0 赞:
0 阅读:
213
源泉书签介绍:
源泉书签是一款带层级标签、可添加笔记、可全文搜索的网络书签,期望给您提供稳定的的、方便的在线书签服务...
分类:
其他 时间:
2015-08-10 22:14:48
收藏:
0 评论:
0 赞:
0 阅读:
247
I NEED A OFFER!
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 20129 Accepted Submission(s): 8034
Problem Description
Speakless...
分类:
其他 时间:
2015-08-10 22:14:38
收藏:
0 评论:
0 赞:
0 阅读:
235
题目Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with co...
分类:
其他 时间:
2015-08-10 22:14:28
收藏:
0 评论:
0 赞:
0 阅读:
225
消息机制
main.xml文件代码。
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
androi...
分类:
其他 时间:
2015-08-10 22:13:52
收藏:
0 评论:
0 赞:
0 阅读:
137
Problem Description
As we all know, in the computer science, an integer A is in the range of 32-signed integer, which means the integer A is between -2^31 and (2^31)-1 (inclusive), and A is a 64-signe...
分类:
其他 时间:
2015-08-10 22:13:36
收藏:
0 评论:
0 赞:
0 阅读:
266
快乐虾http://blog.csdn.net/lights_joy/欢迎转载,但请保留作者信息解析以太网帧的过程是构建以太网帧的逆过程,当我们接收到一个以太网帧时,仍然以上一节中的ARP帧为例:当收到这样一个数据帧时,首先应当构造一个Packet存放数据: PtrPacket>src = CreatePacket>(buffer,len);然后取出以太网包头: //解析以太网包头 ...
分类:
其他 时间:
2015-08-10 22:13:35
收藏:
0 评论:
0 赞:
0 阅读:
316
我竟然还不会LCT QAQ真是太弱了
必须学LCT QAQ
——————————————————线割分是我www———————————-...
分类:
其他 时间:
2015-08-10 22:12:58
收藏:
0 评论:
0 赞:
0 阅读:
534
Description
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 + 4 = 1...
分类:
其他 时间:
2015-08-10 22:12:48
收藏:
0 评论:
0 赞:
0 阅读:
264
//n个任务,m台机器
//每个任务都有开始工作的时间,结束的时间和需要一台机器工作的天数
//每个任务的工作可以断开,只需要在规定的时间内用机器工作规定天数
//在同一天,一个任务只能被一台机器工作
//问能否安排时间使得所有的任务都能在规定时间内完成
//对任务和其工作的时间建立权值为1的边
//在建立一个超级源点和一个超级汇点
//从源点向任务引入权值为该任务需要工作的天数,从每...
分类:
其他 时间:
2015-08-10 22:12:38
收藏:
0 评论:
0 赞:
0 阅读:
187
Language:
Default
开关问题
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 6656
Accepted: 2541
Description
有N个相同的开关,每个开关都与某些开关有着联系,每当你打开或者关闭某个开关的时候,其他的与此开关...
分类:
其他 时间:
2015-08-10 22:12:28
收藏:
0 评论:
0 赞:
0 阅读:
266
题目链接:http://poj.org/problem?id=2104
题目意思很简单,就是给你一个序列,查询某区间第K大的数;
方法1:时间复杂度O(N*M);不支持更新操作,代码简单;
利用结构体排序,保留原数据的顺序。
#include
#include
#include
#define N 100000
using namespace std;
/*
这个思路很好;时...
分类:
其他 时间:
2015-08-10 22:12:08
收藏:
0 评论:
0 赞:
0 阅读:
346
题目链接:
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=600&problem=1398&mosmsg=Submission+received+with+ID+14106648题意:
m条路,每条路上必须维持速度v,现在有一辆车,启动能量和结束能量...
分类:
其他 时间:
2015-08-10 22:11:28
收藏:
0 评论:
0 赞:
0 阅读:
729
直方图均衡
#include
#include
#include
/*
有的版本CV_BGR2GRAY宏定义没有,需要加载个legacy文件来获取,但是会与其他调用的宏定义出现冲突,所以
这里单独定义一个彩色图像到灰度图像的case number
*/
#define CV_BGR2GRAY 6
#include
using namespace std;
using nam...
分类:
其他 时间:
2015-08-10 22:10:58
收藏:
0 评论:
0 赞:
0 阅读:
212
继续畅通工程
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 17798 Accepted Submission(s): 7662
Problem Description
省政府“畅通工程”的目标是使全省任何两个村庄...
分类:
其他 时间:
2015-08-10 22:10:48
收藏:
0 评论:
0 赞:
0 阅读:
219
类似这种的:\u3455\u5783 为unicode,item = item.encode('raw_unicode_escape')
编码: item = item.encode('utf-8')
什么编码怎么解码。...
分类:
其他 时间:
2015-08-10 22:10:28
收藏:
0 评论:
0 赞:
0 阅读:
124
一道签到题
时间限制: 2 Sec 内存限制:
128 MB
提交: 69 解决: 33
[提交][状态][讨论版]
题目描述
我想说这是一道签到题,意思就是本次测试中最水的一道,不过我这样说你真的愿意相信我吗?哈哈,题目是这样的给你一下小数,然后请告诉我分别告诉我这个小数的循环节的循环次数、循环节以及循环节长度
输入
输入包括多组测试数据每组测试数据1行...
分类:
其他 时间:
2015-08-10 22:10:21
收藏:
0 评论:
0 赞:
0 阅读:
266
方案一:可以通过cocoapod来安装kiwi
方案二:通过Kiwi插件地址:http://alcatraz.io出现问题的解决:https://github.com/cikelengfeng/RPAXUwiki 的相关设置链接:https://github.com/kiwi-bdd/Kiwi/wiki/Getting-Started-with-Kiwi-2.0...
分类:
其他 时间:
2015-08-10 22:10:08
收藏:
0 评论:
0 赞:
0 阅读:
201