Codeforces Round #525 (Div. 2) A. Ehab and another construction problem

题解

题目大意 给一个n找到满足四个条件式的a和b a和b可以相等

除了1都可以找到a=b=n这种情况满足条件

AC代码

#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

const int INF = 0x3f3f3f3f;

int main()
{
#ifdef LOCAL
	//freopen("C:/input.txt", "r", stdin);
#endif
	int x;
	cin >> x;
	if (x == 1)
		cout << -1 << endl;
	else
		cout << x << " " << x << endl;

	return 0;
}

猜你喜欢

转载自blog.csdn.net/CaprYang/article/details/84834028