結果

問題 No.312 置換処理
ユーザー 👑 KazunKazun
提出日時 2020-08-31 14:52:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 82,132 KB
実行使用メモリ 59,356 KB
最終ジャッジ日時 2024-04-27 11:10:18
合計ジャッジ時間 3,415 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
57,116 KB
testcase_01 AC 52 ms
57,856 KB
testcase_02 AC 56 ms
59,356 KB
testcase_03 AC 56 ms
58,444 KB
testcase_04 AC 43 ms
53,476 KB
testcase_05 AC 57 ms
57,316 KB
testcase_06 AC 50 ms
58,440 KB
testcase_07 AC 55 ms
58,576 KB
testcase_08 AC 54 ms
57,764 KB
testcase_09 AC 47 ms
58,508 KB
testcase_10 AC 47 ms
58,472 KB
testcase_11 AC 55 ms
57,888 KB
testcase_12 AC 49 ms
57,520 KB
testcase_13 AC 56 ms
58,136 KB
testcase_14 AC 51 ms
58,312 KB
testcase_15 AC 50 ms
58,248 KB
testcase_16 AC 46 ms
58,672 KB
testcase_17 AC 53 ms
59,052 KB
testcase_18 AC 53 ms
58,300 KB
testcase_19 AC 54 ms
58,448 KB
testcase_20 AC 56 ms
58,172 KB
testcase_21 AC 55 ms
57,856 KB
testcase_22 AC 38 ms
52,508 KB
testcase_23 AC 39 ms
52,988 KB
testcase_24 AC 38 ms
52,820 KB
testcase_25 AC 38 ms
53,288 KB
testcase_26 AC 39 ms
52,596 KB
testcase_27 AC 40 ms
52,320 KB
testcase_28 AC 38 ms
52,080 KB
testcase_29 AC 38 ms
52,660 KB
testcase_30 AC 43 ms
58,004 KB
testcase_31 AC 44 ms
57,872 KB
testcase_32 AC 41 ms
58,972 KB
testcase_33 AC 46 ms
57,996 KB
testcase_34 AC 47 ms
58,420 KB
testcase_35 AC 49 ms
58,196 KB
testcase_36 AC 39 ms
52,232 KB
testcase_37 AC 39 ms
52,532 KB
testcase_38 AC 38 ms
53,588 KB
testcase_39 AC 46 ms
58,416 KB
testcase_40 AC 42 ms
58,796 KB
testcase_41 AC 38 ms
52,872 KB
testcase_42 AC 41 ms
57,856 KB
testcase_43 AC 37 ms
52,340 KB
testcase_44 AC 40 ms
51,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#約数全部
def Divisors(N):
    N=abs(N)
    L,U=[],[]
    k=1
    while k*k <=N:
        if N%k== 0:
            L.append(k)
            if k!=N//k:
                U.append(N//k)
        k+=1
    return L+U[::-1]
#================================================
N=int(input())
R=Divisors(N)

for a in R:
    if a>=3:
        print(a)
        exit()
0