結果
| 問題 |
No.414 衝動
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-19 14:24:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 1,000 ms |
| コード長 | 372 bytes |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 57,728 KB |
| 最終ジャッジ日時 | 2024-11-23 13:49:28 |
| 合計ジャッジ時間 | 1,664 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
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())
if n==1:
print(1,1)
exit()
l=make_divisors(n)
if len(l)==2:
print(*l)
else:
ans1=l[1]
ans2=n//ans1
print(ans1,ans2)