結果

問題 No.312 置換処理
ユーザー DrDrpilotDrDrpilot
提出日時 2022-01-21 11:07:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 166 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 376 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 8,284 KB
最終ジャッジ日時 2023-08-16 15:22:57
合計ジャッジ時間 5,497 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
8,272 KB
testcase_01 AC 117 ms
8,284 KB
testcase_02 AC 166 ms
8,260 KB
testcase_03 AC 164 ms
8,224 KB
testcase_04 AC 15 ms
8,088 KB
testcase_05 AC 164 ms
8,140 KB
testcase_06 AC 102 ms
8,152 KB
testcase_07 AC 145 ms
8,280 KB
testcase_08 AC 137 ms
8,144 KB
testcase_09 AC 72 ms
8,148 KB
testcase_10 AC 81 ms
8,284 KB
testcase_11 AC 141 ms
8,084 KB
testcase_12 AC 101 ms
8,104 KB
testcase_13 AC 152 ms
8,108 KB
testcase_14 AC 113 ms
8,284 KB
testcase_15 AC 100 ms
8,100 KB
testcase_16 AC 67 ms
8,232 KB
testcase_17 AC 125 ms
8,148 KB
testcase_18 AC 127 ms
8,108 KB
testcase_19 AC 144 ms
8,148 KB
testcase_20 AC 157 ms
8,224 KB
testcase_21 AC 162 ms
8,220 KB
testcase_22 AC 15 ms
8,220 KB
testcase_23 AC 15 ms
8,272 KB
testcase_24 AC 15 ms
8,256 KB
testcase_25 AC 15 ms
8,140 KB
testcase_26 AC 15 ms
8,264 KB
testcase_27 AC 15 ms
8,072 KB
testcase_28 AC 15 ms
8,192 KB
testcase_29 AC 15 ms
8,224 KB
testcase_30 AC 35 ms
8,104 KB
testcase_31 AC 43 ms
8,276 KB
testcase_32 AC 29 ms
8,232 KB
testcase_33 AC 61 ms
8,196 KB
testcase_34 AC 63 ms
8,256 KB
testcase_35 AC 63 ms
8,092 KB
testcase_36 AC 15 ms
8,104 KB
testcase_37 AC 15 ms
8,268 KB
testcase_38 AC 15 ms
8,068 KB
testcase_39 AC 59 ms
8,264 KB
testcase_40 AC 22 ms
8,132 KB
testcase_41 AC 15 ms
8,092 KB
testcase_42 AC 19 ms
8,252 KB
testcase_43 AC 15 ms
8,216 KB
testcase_44 AC 15 ms
8,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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]

n=int(input())
l=make_divisors(n)
for i in l:
    if i==1 or i==2:
        continue
    print(i)
    exit()
0