No.2637 Factorize?
問題文最終更新日: 2024-02-19 00:45:25
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
traP 作問ハッカソンコンテスト 002(day2)
(順位表)
の他の問題:
Problem Statement
Alice saw positive integers $A,B$ written on a blackboard and told you their product $P=A\times B$.
Find $1$ possible pair $A,B$. It can be shown that at least $1$ such pair exists under the constraints.
Constraints
- $P$ is an integer
- $1\le P\le 10^{12}$
Input
$P$
Output
Find $1$ possible pair $A,B$ and output it in the following format.
$A$ $B$Here, $A,B$ must satisfy the following conditions.
- $A,B$ are positive integers
- $A\times B=P$
Sample
Sample 1
Input
12
Output
3 4
$A=3,B=4$ are positive integers and $A\times B=3\times 4=12=P$, so all the conditions are satisfied.
Sample 2
Input
998244353
Output
998244353 1
Sample 3
Input
1
Output
1 1
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
noya2