Long Long ago...已经成为了历史,我还是要说出一个真相:早年前,那时候,android还不被大众所认知的时候,当然开发人员也没不像如今那样趋于饱和状态。一位大牛前辈,也是我的学长,那时候我还在上大学。前辈告诫我有时间得去看看android开发,那时候的自己,年轻、冲动、不畏惧,毅然地选...
分类:
移动开发 时间:
2014-07-09 20:10:10
阅读次数:
257
时间限制:0.25s空间限制:4M题意: 在 n*n(n≤10)的棋盘上放 k (k#include #define LL long longusing namespace std;int powT[11];int statu[1 > 1) ) == 0) && ( (i & (i 0; t ...
分类:
其他好文 时间:
2014-07-09 13:43:57
阅读次数:
168
题目链接:hdu 4849 Wow! Such City!
题目大意:有N个城市,给定计算两两城市距离的公式,然后求0到1~N-1的城市中,最短路径模掉M的最小值。
解题思路:先根据公式求出距离C矩阵,注意中间连乘3次的可能爆long long,然后用裸的dijstra算法求最短路。
#include
#include
#include
#include
using nam...
分类:
Web程序 时间:
2014-07-09 12:56:23
阅读次数:
231
An IP address is 32-bit long. IP addresses are classified into A, B, C, D, and E classes, as shown in the figure below.
Please determine the class of an input IP address and obtain the corresponding IP address information according to the input 32-bit IP ...
分类:
其他好文 时间:
2014-07-09 12:43:54
阅读次数:
232
题目大意:Codeforces 444C DZY Loves Colors
题目大意:两种操作,1是修改区间上l到r上面德值为x,2是询问l到r区间总的修改值。
解题思路:线段树模板题。
#include
#include
#include
#include
using namespace std;
const int maxn = 5*1e5;
typedef long ...
分类:
其他好文 时间:
2014-07-09 10:28:24
阅读次数:
153
1、错误描述
The 'org.eclipse.jdt.ui.JavaAllCompletionProposalComputer' proposal computer from 'org.eclipse.jdt.ui' plug-in did not complete normally. The extension took too long to return from the 'c...
分类:
系统相关 时间:
2014-07-09 10:25:44
阅读次数:
951
http://202.121.199.212/JudgeOnline/problem.php?cid=1079&pid=2
分析: Catalan数的应用,直接用了Catalan数的递推公式之一
代码:
#include
#include
using namespace std;
long long f[20];
void init()
{
f[0]=f[1]...
分类:
其他好文 时间:
2014-07-09 10:17:44
阅读次数:
239
??
Showstopper
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 1218
Accepted: 356
Description
Data-mining huge data sets can be a painful and long last...
分类:
其他好文 时间:
2014-07-09 09:39:17
阅读次数:
242
glusterfs中的内存管理方式: 1 struct mem_pool * 2 mem_pool_new_fn (unsigned long sizeof_type, 3 unsigned long count, char *name) 4 { 5 ...
分类:
其他好文 时间:
2014-07-08 21:50:47
阅读次数:
441
旋转可以分为n种置换,对应的不同等价类分别是gcd(n,i)个i=0时不动,有n个
翻转分为奇偶讨论,奇数时有n种置换,每种有n/2+1个
偶数时有n种置换,一半是n/2+1个,一半是n/2个
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long long ll;...
分类:
其他好文 时间:
2014-07-08 19:05:15
阅读次数:
163