码迷,mamicode.com
首页 >  
搜索关键字:long    ( 19145个结果
POJ 2505 A multiplication game(找规律博弈/贪心)
题目链接 #include #include using namespace std; typedef long long ll; int main() { ll n; while(~scanf("%I64d",&n)) {//其实算是 贪心了吧 //先手想赢,他会x2,这样子才能尽量避免让后手赢 ...
分类:其他好文   时间:2016-03-05 06:52:50    阅读次数:190
SQLite的使用(二):数据增删改查
SQLiteDatabase 用来管理SQLite数据库的类。SQLiteDatabase新增、修改、删除和查询数据库数据的方法,还可以执行其他常见的数据库管理任务。 方法 描述 (void) execSQL(String sql) 执行一个SQL语句的方法 (long) insert(String
分类:数据库   时间:2016-03-05 00:22:38    阅读次数:356
关于Delphi中的字符串的浅析(瓢虫大作,里面有内存错误的举例)
关于Delphi中的字符串的浅析 只是浅浅的解析下,让大家可以快速的理解字符串。 其中的所有代码均在Delphi7下测试通过。 Delphi 4,5,6,7中有字符串类型包括了: 短字符串(Short String) 长字符串(Long String) 宽字符串(Wide String) 零结尾字符
分类:Windows程序   时间:2016-03-05 00:14:52    阅读次数:165
python challenge 待续中
网址:http://www.pythonchallenge.com/解答好文:http://story.iteye.com/blog/730466 0:2^38 1 reduce(lambda x,y:x*y,[2]*38) #输入时不要输入L,只是表示类型为Long 1:位移两位 1 import
分类:编程语言   时间:2016-03-05 00:14:38    阅读次数:217
bzoj 1227: [SDOI2009]虔诚的墓主人
1 #include<iostream> 2 #include<cstdio> 3 #include<algorithm> 4 #define ll long long 5 #define P 2147483648LL 6 using namespace std; 7 int n,m,w,K,H[2
分类:其他好文   时间:2016-03-05 00:04:00    阅读次数:208
Linux常用命令
Linux常用命令 命令: 复制 cp hello.c / 从home目录复制到根目录 cp –r test / 从home目录复制test文件夹到根目录 mv long / 移动 更改文件名字 mv hello.c hello1.c 删除文件 rm hello.c 删除目录 rm test –r
分类:系统相关   时间:2016-03-04 23:57:42    阅读次数:419
手机交互应用服务(震动器控制)
文章来源:(原创)http://www.cnblogs.com/laishenghao/ 要实现这个功能比较简单,只需调用vibrate()函数即可: public static void vibrate(long duration) { Vibrator vibrator = (Vibrator)
分类:移动开发   时间:2016-03-04 20:49:12    阅读次数:186
NSDate && TimeStamp
// 1. NSDate to timeStamp NSString *timeSp = [NSString stringWithFormat:@"%d", (long)[localeDate timeIntervalSince1970]]; // timeStamp NSLog(@"timeSp:
分类:其他好文   时间:2016-03-04 10:26:51    阅读次数:166
hdu 2070
ps:...递推..还是给出公式那种... 代码: #include "stdio.h" #define LL long long LL dp[55]; int main(){ int i,n; dp[0]=0; dp[1]=1; for(i=2;i<55;i++) dp[i]=dp[i-1]+dp
分类:其他好文   时间:2016-03-04 07:04:08    阅读次数:186
一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
程序分析:在10万以内判断,先将该数加上100后再开方,再将该数加上268后再开方,如果开方后的结果满足条件,即是结果 #include<stdio.h> #include<math.h> int main() { long int i,x,y; for(i=1;i<=100000;i++) { x
分类:其他好文   时间:2016-03-03 21:24:36    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!