Ehab and another construction problem(水题)
生活随笔
收集整理的這篇文章主要介紹了
Ehab and another construction problem(水题)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Given an integer xx, find 2 integers aa and bb such that:
1≤a,b≤x1≤a,b≤x
bb divides aa (aa is divisible by bb).
a?b>xa?b>x.
ab<xab<x.
Input
The only line contains the integer xx (1≤x≤100)(1≤x≤100).
Output
You should output two integers aa and bb, satisfying the given conditions, separated by a space. If no pair of integers satisfy the conditions above, print “-1” (without quotes).
Examples
Input
10
Output
6 3
Input
1
Output
-1
直接暴力不多說
代碼如下:
努力加油a啊,(o)/~
總結
以上是生活随笔為你收集整理的Ehab and another construction problem(水题)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: How far away ?(dfs水题
- 下一篇: Codeforces 1093D Be