結果

問題 No.312 置換処理
ユーザー nohakai3nohakai3
提出日時 2022-11-02 10:34:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 86,672 KB
実行使用メモリ 75,704 KB
最終ジャッジ日時 2023-09-23 17:54:41
合計ジャッジ時間 5,871 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,128 KB
testcase_01 AC 85 ms
75,356 KB
testcase_02 AC 91 ms
75,404 KB
testcase_03 AC 91 ms
75,336 KB
testcase_04 AC 73 ms
70,948 KB
testcase_05 AC 74 ms
71,112 KB
testcase_06 AC 77 ms
75,496 KB
testcase_07 AC 80 ms
75,440 KB
testcase_08 AC 73 ms
71,088 KB
testcase_09 AC 72 ms
71,212 KB
testcase_10 AC 77 ms
75,632 KB
testcase_11 AC 79 ms
75,432 KB
testcase_12 AC 73 ms
70,724 KB
testcase_13 AC 73 ms
70,864 KB
testcase_14 AC 72 ms
71,128 KB
testcase_15 AC 73 ms
70,940 KB
testcase_16 AC 73 ms
71,020 KB
testcase_17 AC 74 ms
71,128 KB
testcase_18 AC 73 ms
70,856 KB
testcase_19 AC 74 ms
71,128 KB
testcase_20 AC 74 ms
71,268 KB
testcase_21 AC 73 ms
70,860 KB
testcase_22 AC 72 ms
71,220 KB
testcase_23 AC 73 ms
70,724 KB
testcase_24 AC 74 ms
71,012 KB
testcase_25 AC 74 ms
70,824 KB
testcase_26 AC 74 ms
71,208 KB
testcase_27 AC 74 ms
71,184 KB
testcase_28 AC 74 ms
71,004 KB
testcase_29 AC 74 ms
71,052 KB
testcase_30 AC 80 ms
75,612 KB
testcase_31 AC 76 ms
71,172 KB
testcase_32 AC 79 ms
75,412 KB
testcase_33 AC 83 ms
75,216 KB
testcase_34 AC 82 ms
75,704 KB
testcase_35 AC 77 ms
75,424 KB
testcase_36 AC 72 ms
71,052 KB
testcase_37 AC 74 ms
71,176 KB
testcase_38 AC 73 ms
71,252 KB
testcase_39 AC 75 ms
70,716 KB
testcase_40 AC 72 ms
71,020 KB
testcase_41 AC 73 ms
70,996 KB
testcase_42 AC 72 ms
70,800 KB
testcase_43 AC 74 ms
71,076 KB
testcase_44 AC 73 ms
71,128 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