码迷,mamicode.com
首页 >  
搜索关键字:long    ( 19145个结果
android 工具类之SharePreference
1 /** 2 * SharedPreferences的一个工具类,调用setParam就能保存String, Integer, Boolean, Float, Long类型的参数 3 * 同样调用getParam就能获取到保存在手机里面的数据 4 * @author xiaanmin...
分类:移动开发   时间:2014-07-22 08:01:35    阅读次数:374
hoj Counting the algorithms
贪心加树状数组 给出的数据可能出现两种情况,包含与不包含,但我们从右向左删就能避免这个问题; #include #include #include using namespace std; const int maxn=200010; int f[maxn],l[maxn],a[maxn]; long long tree[maxn]; int n; inline int lowbit(int ...
分类:其他好文   时间:2014-07-22 00:27:36    阅读次数:210
UVA 684 - Integral Determinant(行列式变换)
UVA 684 - Integral Determinant 题目链接 题意:给定一个行列式,求出值 思路:利用线性代数中的列相减,然后不断降阶即可,就是要用分数去写 代码: #include #include #include using namespace std; const int N = 35; long long gcd(long long a...
分类:其他好文   时间:2014-07-22 00:26:37    阅读次数:207
csu 2014 summer training day 2 莫比乌斯反演
SPOJ VLATTICE题意:x,y,z 2 #include 3 #include 4 #include 5 #define maxn 1001000 6 #define LL long long 7 using namespace std; 8 9 int K[maxn];10 in...
分类:其他好文   时间:2014-07-22 00:15:33    阅读次数:454
P52
#include void fun(long s,long *t) { int d; long s1=1; *t=0; while(s>0) { d=s%10; if(d%2!=0) { *t=d*s1+*t;s1*=10; } s/=10; } } void main() { long s,t; printf("\nPlease enter s:"); ...
分类:其他好文   时间:2014-07-22 00:08:33    阅读次数:189
黑马程序员_Java基础String类
- - - - - android培训、java培训、期待与您交流! - - - - - - - String是一个对象String不属于8种基本数据类型(byte,char, short,int, float, long, double, boolean),String是对象,所以其默认值是nul...
分类:编程语言   时间:2014-07-22 00:07:35    阅读次数:303
HDU 4135
状态压缩其实刚开始没看懂为什么要用位运算后来看了别人的注释逐渐明白我也加上注释吧 1 #include 2 using namespace std; 3 4 long long Prime[50];//存放N的质因子 5 6 7 long long getNonCoPrime(long lo...
分类:其他好文   时间:2014-07-22 00:05:36    阅读次数:226
HDU 4135
#include using namespace std;#define maxn 70long long prime[maxn];long long getans(long long num,int m) //求1-mun 不互素的数,m为num素因子的个数;{ ...
分类:其他好文   时间:2014-07-22 00:00:36    阅读次数:160
Bomb
求1-x中出现连续的49的数有多少个(注意要用long long)...
分类:其他好文   时间:2014-07-21 22:48:18    阅读次数:255
poj3186Treats for the Cows(区间DP)
Description FJ has purchased N (1 The treats are interesting for many reasons: The treats are numbered 1..N and stored sequentially in single file in a long box that is open at both ends. On...
分类:其他好文   时间:2014-07-21 22:18:18    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!