首页 > 小红的不动点构造
头像 慎独___
发表于 2026-02-02 03:07:48
n,k=map(int,input().split()) if n==k+1: print("-1") else: aList=[str(x) for x in range(1,k+1)] if n!=k: aList=aList+[str 展开全文
头像 星璇Xx
发表于 2026-05-11 20:56:15
#include<bits/stdc++.h> using namespace std; int main(){ int n,k; cin >> n >> k; if(k == n-1){ cout << -1; retur 展开全文
头像 ddb酱
发表于 2025-11-17 11:13:01
#include <bits/stdc++.h> using namespace std; #define endl "\n" using vi = vector<int>; template<class T> void out(const T 展开全文
头像 千雪水岷
发表于 2025-11-19 21:31:36
//头文件,也可以使用万能头 #include <iostream> #include <vector> //主程序 int main() { int n = 0, k = 0; std::cin >> n >> k; if 展开全文
头像 yujun2007
发表于 2025-11-12 20:45:40
#include <iostream> #include <vector> using namespace std; int main() { int n,k; cin >> n >> k; vector< 展开全文
头像 自由的风0450
发表于 2025-11-22 14:59:16
#include <iostream> using namespace std; int main() { int n,k; cin>>n>>k; if(n==k+1){ cout<<-1; r 展开全文
头像 沧浪之歌
发表于 2026-04-22 10:25:35
#include <stdio.h> int main() { int n, k; scanf("%d %d", &n, &k); if (n - k == 1) { printf("-1\n&quo 展开全文
头像 Zeratuli
发表于 2026-03-23 14:09:53
#include <bits/stdc++.h> using namespace std; using i64 = int64_t; //typedef long long ll; //#define int long long //signed void solve(){ 展开全文
头像 金刚侠
发表于 2026-04-28 20:21:40
#include <bits/stdc++.h> using namespace std; int main() { int n,k,flag=0; cin>>n>>k; vector<int>a(n); for(int 展开全文
头像 无聊的劳伦斯在做测评
发表于 2026-03-25 14:11:11
#include <stdio.h> int main() { int n = 0; int k = 0; scanf("%d %d", &n, &k); int remember = k + 1; if (k > n || n - 展开全文