摘要: 原题链接:http://oj.acm.zstu.edu.cn/JudgeOnline/problem.php?id=2512 Description 有 N 堆纸牌,编号分别为 1,2,…, N。每堆上有若干张,但纸牌总数必为 N 的倍数。可以在任一堆上取若干张纸牌,然后移动。移牌规则为:在编号为 阅读全文
posted @ 2019-03-10 22:58 _yjun 阅读(562) 评论(0) 推荐(0) 编辑
摘要: You are a coach at your local university. There are n n students under your supervision, the programming skill of the i i th student is a i ai . You h 阅读全文
posted @ 2019-03-09 22:34 _yjun 阅读(523) 评论(0) 推荐(0) 编辑
摘要: International Women's Day is coming soon! Polycarp is preparing for the holiday. There are n n candy boxes in the shop for sale. The i i th box contai 阅读全文
posted @ 2019-03-09 22:17 _yjun 阅读(273) 评论(0) 推荐(0) 编辑
摘要: time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Polycarp is going to participate in the conte 阅读全文
posted @ 2019-03-09 21:45 _yjun 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 题解:这道题可以.用二分来做,好吧,我根本想不到,太强了. 题意是给你起点和终点,还有循环出现的风向.船顺风行驶,走两格;逆风不动;与风成角度,斜着开,船自己不行驶会随风开. 这里的处理方法是:把随风行和船自己行驶分开.用dx[],dy[]计算风向循环节内的随风行的距离;最后对天数进行二分查找,因为 阅读全文
posted @ 2019-02-24 20:36 _yjun 阅读(326) 评论(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 阅读(378) 评论(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 阅读(298) 评论(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 阅读(283) 评论(0) 推荐(0) 编辑
摘要: time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given n segments on a line. There ar 阅读全文
posted @ 2019-02-23 22:05 _yjun 阅读(210) 评论(0) 推荐(0) 编辑