博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年10月11日

摘要: 网上找到了来使用HAXM,可惜我在sdk manager上下载不了,也使用过勾上[fetching...]那个选项,依然无效。所以自己手动下载来安装和使用。具体的教程可以参考http://blog.csdn.net/freewebsys/article/details/11136811下载HAXM(即英特尔硬件加速执行管理器)地址:https://developer.tizen.org/zh-hans/downloads/sdk/installing-sdk/hardware-accelerated-execution-manager?langredirect=1Intel® Ato 阅读全文

posted @ 2013-10-11 19:58 紫华弦筝 阅读(326) 评论(0) 推荐(0) 编辑

摘要: android ndk r9 初始学习 阅读全文

posted @ 2013-10-11 16:02 紫华弦筝 阅读(210) 评论(0) 推荐(0) 编辑

摘要: 1.找到avd目录(C:\的那个)并打开,移动.avd文件到需要的位置。2.修改ini文件path,完成。 阅读全文

posted @ 2013-10-11 14:15 紫华弦筝 阅读(173) 评论(0) 推荐(0) 编辑

2013年9月24日

摘要: git版本 1.7.9以后1. 开启 git config --global credential.helper cache2. 设置时间 git config credential.helper 'cache --timeout=3600'git版本 1.7.9以前 git config remote.origin.url https://you:password@github.com/you/example.git参考:http://stackoverflow.com/questions/5343068/is-there-a-way-to-skip-password-typ 阅读全文

posted @ 2013-09-24 16:17 紫华弦筝 阅读(508) 评论(0) 推荐(0) 编辑

2012年8月10日

摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=4358题解:先将树形结构转化成线性结构,这样问题就可以转化为求一个区间内,恰好出现K次的权值有多少种。利用树状数组记录K次的种数(还要用到栈外挂。。。)View Code #pragma comment(linker, "/STACK:1024000000,1024000000")#include <cstdio>#include <cstring>#include <map>#include <vector>#include < 阅读全文

posted @ 2012-08-10 15:56 紫华弦筝 阅读(288) 评论(0) 推荐(1) 编辑

2012年7月22日

摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=4087三维旋转矩阵 + 矩阵加速这个还要用到仿射变换。平移translate tx ty tz1 0 0 tx0 1 0 ty0 0 1 tz0 0 0 1缩放scale kx ky kzkx 0 0 00 ky 0 00 0 kz 00 0 0 1绕任意轴(过原点)旋转(注意要把轴向量归一化,不然会在“点在轴上”这个情况下出问题)rotate x y z d(1-cos(d))*x*x+cos(d) (1-cos(d))*x*y-sin(d)*z (1-cos(d))*x*z+sin(d)*y ... 阅读全文

posted @ 2012-07-22 18:32 紫华弦筝 阅读(393) 评论(0) 推荐(0) 编辑

2012年7月21日

摘要: 题目:http://poj.org/problem?id=3845题意:给一条折线,d次分形后,求一点到初始点的距离与总长度之比刚好为 f (0<=f<=1)的位置。(一开始有点搞不明白,后来才确定就是把起始点和结束点缩放到每一条边的端点上)普通方法View Code #include <cstdio>#include <cstring>#include <cmath>#include <algorithm>#define sqr(x) ((x)*(x))using namespace std;const int N = 110;co 阅读全文

posted @ 2012-07-21 22:18 紫华弦筝 阅读(213) 评论(0) 推荐(0) 编辑

2012年7月17日

摘要: 题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3971二分答案mid,用height数组判断出现连续k次,记录出现的最大下标1,二分循环时,更新最大下标2,最后输出答案。View Code #include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int N = 40000+100;int us[N], ua[N], ub[N], sa[N];int cmp(int *r, in 阅读全文

posted @ 2012-07-17 16:36 紫华弦筝 阅读(190) 评论(0) 推荐(0) 编辑

摘要: 题目:http://www.spoj.pl/problems/PHRASES/把right[20]开成right[N],一直memset导致TLE;因为有字符串标记,所以字符串之间可以不用连接符;不过用连接符也可以。还有da(arr,n+1,256)和calheight(arr,n),注意下标。View Code #include <cstdio>#include <cstring>#include <algorithm>#define clr(a,b) memset(a,b,sizeof(a))using namespace std;const int N 阅读全文

posted @ 2012-07-17 14:43 紫华弦筝 阅读(176) 评论(0) 推荐(0) 编辑

2012年7月16日

摘要: 题目:http://www.spoj.pl/problems/STONE2/用生成函数的方法,其实也是dp的思想。View Code #include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int mod = 1000000007;const int N = 105;#define M(a) ((a)%mod)#define ll long longll ans, an[N], n, all;ll t1[N*N], t2[N*N], c[N*N][N]; 阅读全文

posted @ 2012-07-16 19:01 紫华弦筝 阅读(243) 评论(0) 推荐(0) 编辑