結果

問題 No.312 置換処理
ユーザー akanayaakanaya
提出日時 2020-04-05 14:42:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,264 KB
実行使用メモリ 75,648 KB
最終ジャッジ日時 2023-08-09 16:20:54
合計ジャッジ時間 5,453 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
75,612 KB
testcase_01 AC 83 ms
75,548 KB
testcase_02 AC 88 ms
75,452 KB
testcase_03 AC 88 ms
75,372 KB
testcase_04 AC 71 ms
71,340 KB
testcase_05 AC 89 ms
75,452 KB
testcase_06 AC 82 ms
75,568 KB
testcase_07 AC 91 ms
75,544 KB
testcase_08 AC 86 ms
75,576 KB
testcase_09 AC 79 ms
75,548 KB
testcase_10 AC 82 ms
75,408 KB
testcase_11 AC 87 ms
75,416 KB
testcase_12 AC 82 ms
75,448 KB
testcase_13 AC 87 ms
75,264 KB
testcase_14 AC 84 ms
75,476 KB
testcase_15 AC 83 ms
75,528 KB
testcase_16 AC 79 ms
75,568 KB
testcase_17 AC 83 ms
75,648 KB
testcase_18 AC 82 ms
75,492 KB
testcase_19 AC 87 ms
75,544 KB
testcase_20 AC 88 ms
75,464 KB
testcase_21 AC 88 ms
75,556 KB
testcase_22 AC 70 ms
71,496 KB
testcase_23 AC 69 ms
71,324 KB
testcase_24 AC 70 ms
71,464 KB
testcase_25 AC 71 ms
71,464 KB
testcase_26 AC 70 ms
71,416 KB
testcase_27 AC 70 ms
71,596 KB
testcase_28 AC 68 ms
71,416 KB
testcase_29 AC 70 ms
71,244 KB
testcase_30 AC 75 ms
75,408 KB
testcase_31 AC 77 ms
75,504 KB
testcase_32 AC 76 ms
75,540 KB
testcase_33 AC 78 ms
75,556 KB
testcase_34 AC 76 ms
75,632 KB
testcase_35 AC 76 ms
75,540 KB
testcase_36 AC 70 ms
71,352 KB
testcase_37 AC 68 ms
71,360 KB
testcase_38 AC 71 ms
71,344 KB
testcase_39 AC 76 ms
75,464 KB
testcase_40 AC 72 ms
75,380 KB
testcase_41 AC 70 ms
71,348 KB
testcase_42 AC 73 ms
75,376 KB
testcase_43 AC 69 ms
71,352 KB
testcase_44 AC 71 ms
71,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

def divisors(n):
    div = []
    i = 1
    while(i * i <= n):
        if n % i == 0:
            div.append(i)
            if i * i != n:
                div.append(n // i)
        i += 1
    return div

div = sorted(divisors(n))

if div[1] == 2:
    print(div[2])
else:
    print(div[1])



0