Live2d Test Env
摘要: Anton likes permutations, especially he likes to permute their elements. Note that a permutation of n elements is a sequence of numbers {a1, a2, ...,  阅读全文
posted @ 2018-01-05 20:55 nimphy 阅读(436) 评论(0) 推荐(0) 编辑
摘要: Bob has a favorite number k and ai of length n. Now he asks you to answer m queries. Each query is given by a pair li and ri and asks you to count the 阅读全文
posted @ 2018-01-05 17:32 nimphy 阅读(277) 评论(0) 推荐(0) 编辑
摘要: Given an N*N matrix A, whose elements are either 0 or 1. A[i, j] means the number in the i-th row and j-th column. Initially we have A[i, j] = 0 (1 <= 阅读全文
posted @ 2018-01-05 15:15 nimphy 阅读(819) 评论(0) 推荐(0) 编辑
摘要: You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number 阅读全文
posted @ 2018-01-05 14:07 nimphy 阅读(278) 评论(0) 推荐(0) 编辑