No testdata at current.
给定两个数n,kn,kn,k,你需要求出1,2,...,n1,2,...,n1,2,...,n的所有排列a1,a2,...,ana_1,a_2,...,a_na1,a2,...,an中满足a1<a2a_1 < a_2a1<a2目逆序对个数sum≤ksum ≤ ksum≤k的个数整数对(i,j)(i,j)(i,j)是逆序对即对于两个位置i,ji, ji,j满足i<j,ai>aji < j,a_i> a_ji<j,ai>aj
排列a1,a2,…,ana_1,a_2,…,a_na1,a2,…,an即要求ai≠aj(i≠j)a_i≠a_j(i≠j)ai=aj(i=j),
本题属于以下题库,请选择所需题库进行购买
ScanQRCodePrompt
GoToPasswordLoginPrompt