上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页
摘要: Every person likes prime numbers. Alice is a person, thus she also shares the love for them. Bob wanted to give her an affectionate gift but couldn't 阅读全文
posted @ 2020-06-15 08:33 DeaL57 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Given an array aa of length nn, find another array, bb, of length nn such that: for each ii (1≤i≤n)(1≤i≤n) MEX({b1MEX({b1, b2b2, ……, bi})=aibi})=ai. T 阅读全文
posted @ 2020-06-14 16:09 DeaL57 阅读(332) 评论(0) 推荐(0) 编辑
摘要: You are given a matrix with nn rows (numbered from 11 to nn) and mm columns (numbered from 11 to mm). A number ai,jai,j is written in the cell belongi 阅读全文
posted @ 2020-06-13 11:17 DeaL57 阅读(234) 评论(0) 推荐(0) 编辑
摘要: The only difference between easy and hard versions is the number of elements in the array. You are given an array aa consisting of nn integers. In one 阅读全文
posted @ 2020-06-12 23:13 DeaL57 阅读(208) 评论(0) 推荐(0) 编辑
摘要: You are fighting with Zmei Gorynich — a ferocious monster from Slavic myths, a huge dragon-like reptile with multiple heads! Initially Zmei Gorynich h 阅读全文
posted @ 2020-06-12 15:15 DeaL57 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Monocarp and Bicarp live in Berland, where every bus ticket consists of nn digits (nn is an even number). During the evening walk Monocarp and Bicarp 阅读全文
posted @ 2020-06-10 21:04 DeaL57 阅读(207) 评论(0) 推荐(0) 编辑
摘要: There is a white sheet of paper lying on a rectangle table. The sheet is a rectangle with its sides parallel to the sides of the table. If you will ta 阅读全文
posted @ 2020-06-10 09:42 DeaL57 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Suppose there is a h×wh×w grid consisting of empty or full cells. Let's make some definitions: riri is the number of consecutive full cells connected 阅读全文
posted @ 2020-06-10 08:49 DeaL57 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Let's introduce some definitions that will be needed later. Let prime(x)prime(x) be the set of prime divisors of xx. For example, prime(140)={2,5,7}pr 阅读全文
posted @ 2020-06-08 10:33 DeaL57 阅读(137) 评论(0) 推荐(0) 编辑
摘要: You are playing a game where your character should overcome different obstacles. The current problem is to come down from a cliff. The cliff has heigh 阅读全文
posted @ 2020-06-07 10:57 DeaL57 阅读(189) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页