結果

問題 No.312 置換処理
ユーザー ああいいああいい
提出日時 2022-03-17 21:55:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 82,164 KB
実行使用メモリ 59,172 KB
最終ジャッジ日時 2024-04-09 20:33:30
合計ジャッジ時間 3,022 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,528 KB
testcase_01 AC 44 ms
57,840 KB
testcase_02 AC 51 ms
58,196 KB
testcase_03 AC 49 ms
58,196 KB
testcase_04 AC 33 ms
52,756 KB
testcase_05 AC 34 ms
52,292 KB
testcase_06 AC 37 ms
58,712 KB
testcase_07 AC 41 ms
58,512 KB
testcase_08 AC 34 ms
53,680 KB
testcase_09 AC 33 ms
51,824 KB
testcase_10 AC 35 ms
58,200 KB
testcase_11 AC 38 ms
58,708 KB
testcase_12 AC 33 ms
53,084 KB
testcase_13 AC 34 ms
53,760 KB
testcase_14 AC 33 ms
52,208 KB
testcase_15 AC 32 ms
52,672 KB
testcase_16 AC 33 ms
52,356 KB
testcase_17 AC 34 ms
52,168 KB
testcase_18 AC 32 ms
52,832 KB
testcase_19 AC 32 ms
52,452 KB
testcase_20 AC 34 ms
52,584 KB
testcase_21 AC 32 ms
52,356 KB
testcase_22 AC 34 ms
52,572 KB
testcase_23 AC 34 ms
53,512 KB
testcase_24 AC 34 ms
52,400 KB
testcase_25 AC 34 ms
52,200 KB
testcase_26 AC 33 ms
52,524 KB
testcase_27 AC 32 ms
51,824 KB
testcase_28 AC 32 ms
52,000 KB
testcase_29 AC 33 ms
52,348 KB
testcase_30 AC 38 ms
58,372 KB
testcase_31 AC 33 ms
52,608 KB
testcase_32 AC 37 ms
58,920 KB
testcase_33 AC 39 ms
59,172 KB
testcase_34 AC 39 ms
57,564 KB
testcase_35 AC 36 ms
58,740 KB
testcase_36 AC 35 ms
52,900 KB
testcase_37 AC 32 ms
52,132 KB
testcase_38 AC 33 ms
52,944 KB
testcase_39 AC 32 ms
52,276 KB
testcase_40 AC 32 ms
52,340 KB
testcase_41 AC 31 ms
52,644 KB
testcase_42 AC 34 ms
52,748 KB
testcase_43 AC 34 ms
52,084 KB
testcase_44 AC 33 ms
51,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())


import sys
if N <= 5:
    print(N)
    exit()
d = 3
while d * d <= N:
    if N % d == 0:
        print(d)
        exit()
    d += 1

if N % 2 == 0:
    print(N//2)
else:
    print(N)
0