上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页
摘要: 链接:https://ac.nowcoder.com/acm/contest/102/C来源:牛客网 题目描述 We define a value of an interval is the second largest number of it's elements, and of course a 阅读全文
posted @ 2020-01-17 22:29 GRedComeT 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Let us consider a special type of a binary search tree, called a cartesian tree. Recall that a binary search tree is a rooted ordered binary tree, suc 阅读全文
posted @ 2020-01-17 14:15 GRedComeT 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Xuanxuan has n sticks of different length. One day, she puts all her sticks in a line, represented by S1, S2, S3, ...Sn. After measuring the length of 阅读全文
posted @ 2020-01-17 11:40 GRedComeT 阅读(119) 评论(0) 推荐(0) 编辑
摘要: For the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game of Ultim 阅读全文
posted @ 2020-01-15 21:41 GRedComeT 阅读(96) 评论(0) 推荐(0) 编辑
摘要: https://ac.nowcoder.com/acm/contest/203/E 埋坑不会做 阅读全文
posted @ 2020-01-14 22:20 GRedComeT 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 一个叫做立方体大作战的游戏风靡整个Byteotia。这个游戏的规则是相当复杂的,所以我们只介绍他的简单规则:给定玩家一个有2n个元素的栈,元素一个叠一个地放置。这些元素拥有n个不同的编号,每个编号正好有两个元素。玩家每次可以交换两个相邻的元素。如果在交换之后,两个相邻的元素编号相同,则将他们都从栈中 阅读全文
posted @ 2020-01-14 21:11 GRedComeT 阅读(114) 评论(0) 推荐(0) 编辑
摘要: For the k-th number, we all should be very familiar with it. Of course,to kiki it is also simple. Now Kiki meets a very similar problem, kiki wants to 阅读全文
posted @ 2020-01-14 20:19 GRedComeT 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Stan and Ollie play the game of Odd Brownie Points. Some brownie points are located in the plane, at integer coordinates. Stan plays first and places 阅读全文
posted @ 2020-01-14 18:03 GRedComeT 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 很久很久以前,在遥远的大陆上有一个美丽的国家。统治着这个美丽国家的国王是一个园艺爱好者,在他的皇家花园里种植着各种奇花异草。有一天国王漫步在花园里,若有所思,他问一个园丁道: “最近我在思索一个问题,如果我们把花坛摆成六个六角形,那么……” “那么本质上它是一个深度优先搜索,陛下”,园丁深深地向国王 阅读全文
posted @ 2020-01-14 13:39 GRedComeT 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Description 一个N*M的方格,初始时每个格子有一个整数权值,接下来每次有2个操作: 改变一个格子的权值 求一个子矩阵中某个特定权值出现的个数 Input 每一行有两个数字N,M 接下来N行,每行M个数字。第i+1行第j个数字表示格子(i,j)的初值 接下来输入一个Q,后面Q行每行描述一个 阅读全文
posted @ 2020-01-13 22:14 GRedComeT 阅读(183) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页