首页 > K-skip Permutation
头像 客户端劝退第四人
发表于 2021-06-14 20:37:07
显然,当枚举的值等于k+1时,结束循环即可 #include <bits stdc++.h> using namespace std; int n,k; const int N = 1e6 + 10; bool st[N]; int main(){ cin >> n 展开全文