码迷,mamicode.com
首页 >  
搜索关键字:long position    ( 28572个结果
NOIP2013 题解
转圈游戏 题解:快速幂 1 #include 2 3 int n, m, k, x; 4 5 inline long long QuickPow(int a, int k, int MOD){ 6 long long base = a, ret = 1; 7 while (k...
分类:其他好文   时间:2014-07-22 22:44:34    阅读次数:284
LBS 与 GPS 定位之间的区别
什么是LBS定位?LBS英文全称为Location Based Services, 它包括两层含义:首先是确定移动设备或用户所在的地理位置;其次是提供与位置相关的各类信息服务。意指与定位相关的各类服务系统,简称"定位服务",另外一种叫法为MPS-Mobile Position Services, 也...
分类:其他好文   时间:2014-07-22 22:44:15    阅读次数:346
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
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
POJ3185 The Water Bowls 反转(开关)
Description The cows have a line of 20 water bowls from which they drink. The bowls can be either right-side-up (properly oriented to serve refreshing cool water) or upside-down (a position which h...
分类:其他好文   时间:2014-07-21 22:32:18    阅读次数:278
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
迷上了代码!