题目链接 #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
SQLiteDatabase 用来管理SQLite数据库的类。SQLiteDatabase新增、修改、删除和查询数据库数据的方法,还可以执行其他常见的数据库管理任务。 方法 描述 (void) execSQL(String sql) 执行一个SQL语句的方法 (long) insert(String
分类:
数据库 时间:
2016-03-05 00:22:38
阅读次数:
356
关于Delphi中的字符串的浅析 只是浅浅的解析下,让大家可以快速的理解字符串。 其中的所有代码均在Delphi7下测试通过。 Delphi 4,5,6,7中有字符串类型包括了: 短字符串(Short String) 长字符串(Long String) 宽字符串(Wide String) 零结尾字符
网址: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
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常用命令 命令: 复制 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
// 1. NSDate to timeStamp NSString *timeSp = [NSString stringWithFormat:@"%d", (long)[localeDate timeIntervalSince1970]]; // timeStamp NSLog(@"timeSp:
分类:
其他好文 时间:
2016-03-04 10:26:51
阅读次数:
166
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
程序分析:在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