码迷,mamicode.com
首页 >  
搜索关键字:__int64    ( 879个结果
ios多线程操作(七)—— GCD延迟操作与一次性代码
使用GCD函数可以进行延时操作,该函数为 dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ });   现在我们来分解一下参数 dispatch_time(DISPATCH_TIME_N...
分类:移动开发   时间:2015-03-21 22:59:52    阅读次数:293
欧拉计划·第十题
题目10:计算两百万以下所有质数的和。 10以下的质数的和是2 + 3 + 5 + 7 = 17. 找出两百万以下所有质数的和。 源码 STDMETHODIMP COuLa::Test10(int number) { // TODO: 在此添加实现代码 __int64 sum = 2; for(int i = 2; 2*i-1 <= number; i++) {...
分类:其他好文   时间:2015-03-20 22:06:50    阅读次数:130
HDU 4506
EASY题,快速幂。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define LL __int64 7 using namespace std; 8 const LL MOD=1000000007; 9 10 ...
分类:其他好文   时间:2015-03-20 14:08:05    阅读次数:93
poj 3468
题意 两种操作 1:区间更新c 2:问区间的和 经典区间线段树#include #includeusing namespace std;const int N=100011;struct Node{ int l,r; __int64 s,sum;}Tree[N*4]...
分类:其他好文   时间:2015-03-19 21:35:59    阅读次数:102
poj 1406 Starship Hakodate-maru 暴力枚举
水题,直接贴代码。 //poj 1406 //sep9 # include using namespace std; __int64 f1[2024]; __int64 f2[3024]; int main() { __int64 index1=0,index2=0,n; for(index1=0;index1<1300;++index1) f1[index1]=index1*index...
分类:其他好文   时间:2015-03-18 07:51:27    阅读次数:166
HDU 4530
今天让人看不起了,话说好伤心,说我搞了ACM那么久都没获得拿得出手的奖。。。。今晚爷爷我要狂刷2013腾讯马拉松的水题,奶奶滴,哈哈哈哈。。。T_T 1 #include 2 #include 3 #include 4 #include 5 #define LL __int64 6 7 u...
分类:其他好文   时间:2015-03-16 22:33:00    阅读次数:171
扩展baby step giant step模版
#include #include #include #include using namespace std; typedef __int64 LL; LL gcd(LL a, LL b) { return b ? gcd(b, a%b) : a; } LL pow_mod(LL a, LL p, LL n) { LL ans = 1; while(p) { if(p&1) ...
分类:其他好文   时间:2015-03-16 17:51:51    阅读次数:164
HDU 5186
easy !! 1 #include 2 #include 3 #include 4 #define LL __int64 5 using namespace std; 6 7 8 int input[210],l; 9 char in[210];10 struct BigNumber{1...
分类:其他好文   时间:2015-03-15 22:29:58    阅读次数:119
hdu1420(C++)
数论中模的运算:a*b%n=(a%n)*(b%n)%c;(a+b)%n=(a%n+b%n)%n;幂的模:A^n%c=r 于是A^(n+1)%c=A*r%c;#includeusing namespace std;int main(){ int T,i; _int64 a, b, c, r; //定....
分类:编程语言   时间:2015-03-13 22:13:42    阅读次数:188
两个无符号类型想减结果存储的临时变量还是无符号类型
1 #include 2 int main() 3 { 4 unsigned int dwVal = 0; 5 unsigned __int64 n64Val = 1; 6 if( dwVal - n64Val >= 20) 7 { 8 print...
分类:其他好文   时间:2015-03-13 15:58:50    阅读次数:103
879条   上一页 1 ... 50 51 52 53 54 ... 88 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!