摘要: You are given three positive integers N,x,y.Please calculate how many permutations of 1∼N satisfies the following conditions (We denote the i-th numbe 阅读全文
posted @ 2019-08-06 11:31 一只球球 阅读(186) 评论(0) 推荐(0) 编辑
摘要: You are given two integers N,CN,C and two integer sequences aa and bb of length NN. The sequences are indexed from 11 to NN. Please solve the followin 阅读全文
posted @ 2019-08-06 10:11 一只球球 阅读(143) 评论(0) 推荐(1) 编辑