結果
| 問題 |
No.414 衝動
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-15 10:38:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 369 bytes |
| コンパイル時間 | 247 ms |
| コンパイル使用メモリ | 82,296 KB |
| 実行使用メモリ | 65,172 KB |
| 最終ジャッジ日時 | 2024-07-02 14:22:34 |
| 合計ジャッジ時間 | 1,998 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 RE * 1 |
ソースコード
M = int(input())
# 約数列挙
def make_divisors(n):
lower_divisors , upper_divisors = [], []
i = 1
while i*i <= n:
if n % i == 0:
lower_divisors.append(i)
if i != n // i:
upper_divisors.append(n//i)
i += 1
return lower_divisors + upper_divisors[::-1]
x = make_divisors(M)
print(x[1], M//x[1])