上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页
摘要: Alice and Bob are playing a game with nn piles of stones. It is guaranteed that nn is an even number. The ii-th pile has aiai stones. Alice and Bob wi 阅读全文
posted @ 2019-05-09 20:50 断腿三郎 阅读(363) 评论(0) 推荐(0) 编辑
摘要: SaMer is building a simple robot that can move in the four directions: up (^), down (v), left (<), and right (>). The robot receives the commands to m 阅读全文
posted @ 2019-05-09 20:39 断腿三郎 阅读(363) 评论(0) 推荐(0) 编辑
摘要: Given an R×C grid with each cell containing an integer, find the number of subrectangles in this grid that contain only one distinct integer; this mea 阅读全文
posted @ 2019-05-06 20:17 断腿三郎 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Description 继在鹅厂工作的DJ训练完鹅厂的企鹅们之后,DJ发明了一个新游戏。该游戏在nxn的棋盘上进行,其中恰好有n个企鹅,企鹅向四个方向之一移动一格算作一步。DJ希望用最少的总步数把这些企鹅变成一排,即所有企鹅都在同一行或同一列(由于DJ目不斜视,他认为所有企鹅在同一对角线上的情况不算 阅读全文
posted @ 2019-05-06 19:50 断腿三郎 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Neko has a loop of size nn. The loop has a happy value aiai on the i−th(0≤i≤n−1)i−th(0≤i≤n−1) grid. Neko likes to jump on the loop.She can start at an 阅读全文
posted @ 2019-05-03 21:56 断腿三郎 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Subsequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9847 Accepted Submission(s): 3292 Pro 阅读全文
posted @ 2019-05-01 21:10 断腿三郎 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Largest Submatrix of All 1’s Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 8551 Accepted: 3089 Case Time Limit: 2000MS Description Given 阅读全文
posted @ 2019-04-29 11:22 断腿三郎 阅读(254) 评论(1) 推荐(0) 编辑
摘要: For the given sequence with n different elements find the number of increasing subsequences with k + 1elements. It is guaranteed that the answer is no 阅读全文
posted @ 2019-04-17 22:33 断腿三郎 阅读(286) 评论(0) 推荐(0) 编辑
摘要: Sereja has a sequence that consists of n positive integers, a1, a2, ..., an. First Sereja took a piece of squared paper and wrote all distinct non-emp 阅读全文
posted @ 2019-04-16 17:12 断腿三郎 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Some mathematical background. This problem asks you to compute the expected value of a random variable. If you haven't seen those before, the simple d 阅读全文
posted @ 2019-04-16 16:22 断腿三郎 阅读(305) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页