码迷,mamicode.com
首页 >  
搜索关键字:long    ( 19145个结果
android笔记1——开发环境的搭建
Long Long ago...已经成为了历史,我还是要说出一个真相:早年前,那时候,android还不被大众所认知的时候,当然开发人员也没不像如今那样趋于饱和状态。一位大牛前辈,也是我的学长,那时候我还在上大学。前辈告诫我有时间得去看看android开发,那时候的自己,年轻、冲动、不畏惧,毅然地选...
分类:移动开发   时间:2014-07-09 20:10:10    阅读次数:257
SGU 223.Little Kings
时间限制: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!(dijstra)
题目链接: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
MyEclipse提示出错
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
shu_1016 栈
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
glusterfs 内存管理方式
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
uva 1363 - Joseph's Problem(数论)
题目链接:uva 1363 - Joseph's Problem 题目大意:给定n,k,求∑i=1n(k%i). 解题思路:参考别人的,自己想了很久,详细题解 #include #include #include #include using namespace std; typedef long long ll; ll solve (ll n, ll k) { ...
分类:其他好文   时间:2014-07-08 19:53:22    阅读次数:139
poj 2409 Let it Bead Polya计数
旋转可以分为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
HDU 4228 Flooring Tiles 反素数
推出了结论,万万没想到最后用搜索。。 还想dp来着。。 #include #include #include #include #include #include #include #include using namespace std; #define ll long long #define N 1000005 ll prime[N],primenum;//有primen...
分类:其他好文   时间:2014-07-08 17:26:17    阅读次数:214
uva 10831 - Gerg's Cake(勒让德记号)
题目链接:uva 10831 - Gerg's Cake 题目大意:给定a和p,p为素数,问说是否存在x,使得x2≡a%p 解题思路:勒让德记号,判断ap?12≡1%p #include #include #include using namespace std; typedef long long ll; ll pow_mod (ll a, ll n, ll mod)...
分类:其他好文   时间:2014-07-08 13:48:57    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!