結果

問題 No.414 衝動
ユーザー DrDrpilot
提出日時 2022-01-19 14:24:06
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 337 bytes
コンパイル時間 789 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 64,768 KB
最終ジャッジ日時 2024-11-23 13:49:26
合計ジャッジ時間 2,249 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

def make_divisors(n):
    lower,upper=[],[]
    i=1
    while i*i<=n:
        if n%i==0:
            lower.append(i)
            if i!=n//i:
                upper.append(n//i)
        i+=1
    return lower+upper[::-1]
n=int(input())
l=make_divisors(n)
if len(l)==2:
    print(*l)
else:
    ans1=l[1]
    ans2=n//ans1
    print(ans1,ans2)
0