1. 程式人生 > >Codeforces Round #525 (Div. 2) A. Ehab and another construction problem

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; }