解决Xcode 5下使用SVN出现 The operation couldn’t be completed. (NSURLErrorDomain error -1012.) 问题2014年March月25日/Linux/Unix/浏览:264/暂无评论/ 使用Xcode5 SVN 出现问题 Th.....
分类:
其他好文 时间:
2014-06-27 20:58:05
阅读次数:
206
问题描述:Time Limit: 10000msCase Time Limit: 1000msMemory Limit: 256MBDescriptionConsider a string set that each of them consists of {0, 1} only. All stri...
分类:
其他好文 时间:
2014-06-25 21:54:20
阅读次数:
258
iOS开发多线程篇—线程的状态一、简单介绍线程的创建:self.thread=[[NSThread alloc]initWithTarget:self selector:@selector(test) object:nil];说明:创建线程有多种方式,这里不做过多的介绍。线程的开启:[self.th...
分类:
移动开发 时间:
2014-06-25 11:55:02
阅读次数:
306
var map=new Map();
map.put("a","A");map.put("b","B");map.put("c","C");
map.get("a"); //返回:A
map.entrySet() // 返回Entity[key,value]
map.containsKey('kevin') //返回:false
function Map() {
th...
分类:
编程语言 时间:
2014-06-25 00:05:28
阅读次数:
309
UVA 10622 - Perfect P-th Powers
题目链接
题意:求n转化为b^p最大的p值
思路:对n分解质因子,然后取所有质因子个数的gcd就是答案,但是这题有个坑啊,就是输入的可以是负数,负数的情况比较特殊,p只能为奇数,这时候是要把答案不断除2除到为奇数即可。
代码:
#include
#include
#include
long lon...
分类:
其他好文 时间:
2014-06-24 23:30:45
阅读次数:
169
JavaScript获取某年某月的最后一天
1、实现源码
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in th...
分类:
编程语言 时间:
2014-06-24 22:36:13
阅读次数:
350
题意:
给定n,AA
下面n个数m1,m2···mn
则有n条方程
res % m1 = m1-AA
res % m2 = m2-AA
问res的最小值
直接上剩余定理,嘿嘿
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define ll ...
分类:
其他好文 时间:
2014-06-24 22:32:50
阅读次数:
315
官方描述:ipairs(t)Returns three values: an iterator function, the tablet, and 0, so that the constructionfor i,v inipairs(t) dobodyendwill iterate over th...
分类:
其他好文 时间:
2014-06-23 08:19:14
阅读次数:
309
错误:”?”日文符号插入sql-server2005符号,出现乱码
原因:DB字段设为varchar,DB文字编码为“Chinese_PRC_CI_AS”
对应:字段类型变化
varchar → nvarchar
插入SQL语句变化
insert into tblTest(remark) values ('王?王')
→...
分类:
数据库 时间:
2014-06-22 21:30:03
阅读次数:
278