找规律
文章平均质量分 91
AI蜗牛之家
北航烟酒僧~ 百度、腾讯自然语言处理算法工程师~
展开
-
POJ 3252 Round Numbers (组合数学)
The cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone' (also known as 'Rock, Paper, Scissors', 'Ro, Sham, Bo', and a host of other names) in order to make原创 2017-04-27 22:04:19 · 893 阅读 · 0 评论 -
Grid(规律)
Grid时间限制: 1 Sec 内存限制: 128 MB提交: 318 解决: 40[提交][状态][讨论版]题目描述Pong is wandering in the grids, and we take his initial position as (0,0). Each step he can move in the 4 directions of UP, D原创 2017-05-05 09:49:58 · 989 阅读 · 0 评论 -
Pong’s Birds(概率 模拟)
Pong’s Birds时间限制: 1 Sec 内存限制: 128 MB提交: 98 解决: 24[提交][状态][讨论版]题目描述In order to train his birds, Pong is holding a competition for them. (He have birds, does he?) He have 2n birds,so h原创 2017-05-05 09:38:05 · 1388 阅读 · 0 评论 -
The 2016 ACM-ICPC Asia Dalian Regional Contest(汇总)
题解链接 ProblemRank (05:00:00)0 CommentsSettingFavoriteClone Stat#OriginTitlehere222 / 700AHDU 5971Wrestling Match原创 2017-05-04 10:45:57 · 2048 阅读 · 0 评论 -
HDU5978 To begin or not to begin(概率+规律)
To begin or not to beginTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 783 Accepted Submission(s): 508Problem DescriptionA b原创 2017-05-04 10:29:47 · 1114 阅读 · 0 评论 -
HDU 5974 A Simple Math Problem(数论)
A Simple Math ProblemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1691 Accepted Submission(s): 494Problem DescriptionGiven原创 2017-05-03 22:26:03 · 1021 阅读 · 0 评论 -
HZAU 1205 Sequence Number(最大值前后缀 +双指针 + 二分)
先求求后面的最小值前缀,也就是预处理1~i的最小值,然后从右往左双指针,维护右端点>左端点,如果右端点#include using namespace std;#define MAXN (100000+5)#define INF 0x3f3f3f3fint n,k,arr[MAXN],mmin[MAXN];int main() { while(~scanf("%d",&n原创 2017-04-24 16:02:37 · 1005 阅读 · 0 评论 -
求个最大值(技巧+二分转化)
求个最大值时间限制: 1 Sec 内存限制: 128 MB提交: 267 解决: 52[提交][状态][讨论版]题目描述给出 n(1 一直到 n,求满足 ai >= aj 的最大的 ai % aj。 输入第一行一个数字 n,第二行 n 个整数。 输出题目要求的最大值。 样例输入22 3样例输出1原创 2017-05-03 17:25:54 · 1275 阅读 · 0 评论 -
URAL 2019. Pair: normal and paranormal(***栈模拟)
2019. Pair: normal and paranormalTime limit: 1.0 secondMemory limit: 64 MBIf you find yourself in Nevada at an abandoned nuclear range during Halloween time, you’ll become a witness of a原创 2017-05-02 20:19:01 · 915 阅读 · 0 评论 -
hust 5239 Doom(线段树 规律OR数论 待整理 )
DoomTime Limit: 12000/6000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 1443 Accepted Submission(s): 378Problem DescriptionTHE END IS COMINGGG原创 2017-05-01 21:06:30 · 746 阅读 · 0 评论 -
第七届 山东省ACM Triple Nim(找规律 待整理)
Triple NimTime Limit: 2000MS Memory Limit: 65536KBSubmit StatisticProblem DescriptionAlice and Bob are always playing all kinds of Nim games and Alice always goes first. Here is the rule of原创 2017-04-15 10:33:05 · 890 阅读 · 0 评论 -
Easy Tree Query(二叉搜索树 规律)
Easy Tree Query时间限制: 3 Sec 内存限制: 128 MB提交: 130 解决: 15[提交][状态][讨论版]题目描述You are given a binary search tree with depth k, whose nodes are valued from 1 to (2k − 1) and then Q queries.Fo原创 2017-05-05 09:56:03 · 1422 阅读 · 0 评论