摘要: time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output Reziba has many magic gems. Each magic gem c 阅读全文
posted @ 2019-02-24 20:48 _yjun 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 题解:这道题可以.用二分来做,好吧,我根本想不到,太强了. 题意是给你起点和终点,还有循环出现的风向.船顺风行驶,走两格;逆风不动;与风成角度,斜着开,船自己不行驶会随风开. 这里的处理方法是:把随风行和船自己行驶分开.用dx[],dy[]计算风向循环节内的随风行的距离;最后对天数进行二分查找,因为 阅读全文
posted @ 2019-02-24 20:36 _yjun 阅读(319) 评论(0) 推荐(0) 编辑
摘要: time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output There are n n emotes in very popular digital 阅读全文
posted @ 2019-02-24 20:06 _yjun 阅读(375) 评论(0) 推荐(0) 编辑
摘要: time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given array a 1 , a 2 ,…, a n a1,a2,… 阅读全文
posted @ 2019-02-24 19:58 _yjun 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 整数快速幂 矩阵快速幂 二叉树的遍历 n皇后问题(递归) include const int N=20; using namespace std; //int mp[N][N]; int mp[N];//使用一维数组 int ans; int n; / void op(){ for(int i=1; 阅读全文
posted @ 2019-02-24 14:40 _yjun 阅读(274) 评论(0) 推荐(0) 编辑