結果

問題 No.312 置換処理
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-23 17:16:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 82,144 KB
実行使用メモリ 59,236 KB
最終ジャッジ日時 2024-04-27 11:12:13
合計ジャッジ時間 2,905 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
58,004 KB
testcase_01 AC 48 ms
58,724 KB
testcase_02 AC 54 ms
57,452 KB
testcase_03 AC 51 ms
57,412 KB
testcase_04 AC 35 ms
52,844 KB
testcase_05 AC 46 ms
57,644 KB
testcase_06 AC 41 ms
57,720 KB
testcase_07 AC 54 ms
58,388 KB
testcase_08 AC 50 ms
58,504 KB
testcase_09 AC 43 ms
57,632 KB
testcase_10 AC 44 ms
57,988 KB
testcase_11 AC 49 ms
57,312 KB
testcase_12 AC 42 ms
57,664 KB
testcase_13 AC 46 ms
58,120 KB
testcase_14 AC 41 ms
57,872 KB
testcase_15 AC 42 ms
57,620 KB
testcase_16 AC 38 ms
57,996 KB
testcase_17 AC 47 ms
58,000 KB
testcase_18 AC 47 ms
58,980 KB
testcase_19 AC 46 ms
57,912 KB
testcase_20 AC 46 ms
57,780 KB
testcase_21 AC 44 ms
57,852 KB
testcase_22 AC 32 ms
52,896 KB
testcase_23 AC 32 ms
52,656 KB
testcase_24 AC 33 ms
53,368 KB
testcase_25 AC 32 ms
53,608 KB
testcase_26 AC 31 ms
52,376 KB
testcase_27 AC 31 ms
52,128 KB
testcase_28 AC 31 ms
52,364 KB
testcase_29 AC 32 ms
52,780 KB
testcase_30 AC 35 ms
58,612 KB
testcase_31 AC 37 ms
57,432 KB
testcase_32 AC 36 ms
57,984 KB
testcase_33 AC 36 ms
58,272 KB
testcase_34 AC 37 ms
59,236 KB
testcase_35 AC 37 ms
57,728 KB
testcase_36 AC 32 ms
53,608 KB
testcase_37 AC 32 ms
53,328 KB
testcase_38 AC 36 ms
52,524 KB
testcase_39 AC 38 ms
59,208 KB
testcase_40 AC 37 ms
57,780 KB
testcase_41 AC 34 ms
52,768 KB
testcase_42 AC 36 ms
58,508 KB
testcase_43 AC 33 ms
53,440 KB
testcase_44 AC 32 ms
52,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = 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(n)
for i in d:
    if i == 1 or i == 2:
        continue
    print(i)
    exit()
0