結果
問題 | No.414 衝動 |
ユーザー | brthyyjp |
提出日時 | 2020-08-09 02:53:03 |
言語 | PyPy3 (7.3.13) |
結果 |
RE
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 1,501 ms |
コンパイル使用メモリ | 87,232 KB |
実行使用メモリ | 79,312 KB |
最終ジャッジ日時 | 2023-07-26 16:42:05 |
合計ジャッジ時間 | 4,636 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 78 ms
75,860 KB |
testcase_01 | AC | 69 ms
71,764 KB |
testcase_02 | AC | 68 ms
71,496 KB |
testcase_03 | AC | 81 ms
75,844 KB |
testcase_04 | AC | 82 ms
75,852 KB |
testcase_05 | AC | 80 ms
75,996 KB |
testcase_06 | AC | 84 ms
75,960 KB |
testcase_07 | RE | - |
testcase_08 | AC | 77 ms
75,836 KB |
testcase_09 | AC | 84 ms
76,000 KB |
testcase_10 | AC | 67 ms
71,848 KB |
testcase_11 | AC | 71 ms
75,708 KB |
testcase_12 | AC | 69 ms
75,916 KB |
ソースコード
m = int(input()) def make_divisors(n): divisors = [] for i in range(1, int(n**0.5)+1): if n % i == 0: divisors.append(i) if i != n // i: divisors.append(n//i) divisors.sort() return divisors d = make_divisors(m) if len(d) == 2: print(1, m) else: print(d[1], m//d[1])