Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 7203 Accepted Submission(s): 2869
Problem Description
The French author Georges Perec...
分类:
其他好文 时间:
2015-08-07 13:28:28
阅读次数:
77
Write an efficient algorithm that searches for a value in an m x
n matrix. This matrix has the following properties:
Integers in each row are sorted in ascending from left to right.Integers in ...
分类:
其他好文 时间:
2015-08-07 13:27:57
阅读次数:
116
【快速幂+dfs/bfs+set】swjtuOJ 2094【注:交大的看到这篇文章要学会自己写,不要为了比赛而比赛!~】题目大意问题一:主人公去度假,问经过a^b天后是星期几(简单题)
问题二:一个天平,n个重物,每个物体的重量wi已知,问能称出的所有重量有多少种?
问题二要注意到天平两侧都可以放重物,每一个重物的权值都可以赋值为w,0,-w,相当于三分,我们知道二分可以用二进制位运算进行...
分类:
其他好文 时间:
2015-08-07 13:28:42
阅读次数:
185
“扬州市广陵文保一图通”上线啦,访问地址:http://61.177.187.244/WBServer/Flex/index.html;望各位大侠批评指正,谢谢!...
分类:
其他好文 时间:
2015-08-07 13:29:00
阅读次数:
144
Problem Description
There are n soda
sitting around a round table. soda are numbered from 1 to n and i-th
soda is adjacent to (i+1)-th
soda, 1-st
soda is adjacent to n-th
soda.
Each so...
分类:
其他好文 时间:
2015-08-07 13:26:04
阅读次数:
120
理解UDP
UDP套接字的特点:在笔记2中讲套接字类型有提,类似信件或邮件的传输。UDP在数据传输过程中可能丢失,如果只考虑可靠性,TCP的确比UDP好。但UDP在结构上比TCP更简洁。UDP没有ACK,SEQ那样的操作,因此,UDP的性能有时比TCP高出很多。编程中实现UDP也比TCP简单。另外,虽然UDP是不可靠的数据传输,但也不会像想象中那么频繁地发生数据丢失。因此,在更重视性能而非可靠性的情...
分类:
其他好文 时间:
2015-08-07 13:26:53
阅读次数:
110
First One
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 672 Accepted Submission(s): 193
Problem Description
soda has an inte...
分类:
其他好文 时间:
2015-08-07 13:27:22
阅读次数:
109
Problem Description
soda has a set S with n integers {1,2,…,n}.
A set is called key set if the sum of integers in the set is an even number. He wants to know how many nonempty subsets of S are
...
分类:
其他好文 时间:
2015-08-07 13:27:28
阅读次数:
109
1、清除cookies 解决新浪共享登录后无法退出切换账号问题
NSHTTPCookie *cookie;
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (cookie in [storage cookies])...
分类:
其他好文 时间:
2015-08-07 13:24:50
阅读次数:
126
利用H264解码分为几个步骤: 注意一点在添加头文件的时候要添加extern "C",不然会出现错误[cpp] view plaincopyextern "C" { #include #include #include #include }; 这里申明了几个全局变量[cpp] view plaincopyAVCodec *pCodec = NULL; A...
分类:
其他好文 时间:
2015-08-07 13:27:21
阅读次数:
138
Oulipo
Time Limit : 3000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)
Total Submission(s) : 45 Accepted Submission(s) : 29
Problem Description
The French author Georges Pere...
分类:
其他好文 时间:
2015-08-07 13:24:56
阅读次数:
131
这道题目我用了一上午才做出来,还是看的别人的思路,虽然没有看代码做的有点慢,代码能力还是得加强啊,思维
得缜密,不能想当然,要有依据,写上的代码要有准确度,省的以后还得慢慢调试
思路:贪心,每次都查看两端位置上的字母是否相等,若不相等就在里面查找能使他们相等且所需移动位置最少的那
个,然后交换,记录交换的距离,贪心的离最后一个由近及远找与第一个位置相等的,同理贪心从第一个位置找和最
后一个...
分类:
其他好文 时间:
2015-08-07 13:26:53
阅读次数:
105
typedef int ElemType;
【递归版本】
int binSearch2(ElemType List[] ,int x,int head,int tail){ //递归版本
while(head<=tail){
int mid=(head+tail)/2;
if(List[mid]==x){
return mid;
}
else if(Li...
分类:
其他好文 时间:
2015-08-07 13:24:57
阅读次数:
115
1.题目描述:点击打开链接
2.解题思路:本题是一道简单的排序题,按照题意排序计算即可。
3.代码:
#define _CRT_SECURE_NO_WARNINGS
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#inclu...
分类:
其他好文 时间:
2015-08-07 13:26:46
阅读次数:
137
昨天通过svn将任务提交到服务器的时候突然发现本地svn文件夹没有svn标识的图标了,之前还是好好的,怎么突然就没了呢?通过查找资料,发现Windows Explorer Shell 支持 Overlay Icon 最多15个,Windows 自身已经使用了4个。留给我们使用的只有11个。既然 Tortoise图标没有显示,那么说明 Tortoise图标的显示顺序在15位之后了。另外,在Window...
分类:
其他好文 时间:
2015-08-07 13:25:10
阅读次数:
135
object-c接收任意类型的参数:
/**
* 接收String类型的多个参数
* @param firsParam 第一个参数
*/
-(void)TestString:(NSString*)firsParam, ... {
va_list list;
va_start(list, firsParam);
NSString* param;
NSLog...
分类:
其他好文 时间:
2015-08-07 13:23:31
阅读次数:
158
Mahout提供推荐系统引擎是模块化的,分为5个主要部分组成:
1. 数据模型
2. 相似度算法
3. 近邻算法
4. 推荐算法
5. 算法评分器
今天好好看了看关于推荐算法以及算法评分部分的源码。
以http://blog.csdn.net/jianjian1992/article/details/46582713
里边数据的为例进行实验。整体流程的代码如下,依...
分类:
其他好文 时间:
2015-08-07 13:24:42
阅读次数:
246