結果

問題 No.312 置換処理
ユーザー 👑 H20H20
提出日時 2021-03-26 14:08:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 82,040 KB
実行使用メモリ 59,380 KB
最終ジャッジ日時 2024-04-27 11:12:08
合計ジャッジ時間 2,601 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,144 KB
testcase_01 AC 41 ms
57,828 KB
testcase_02 AC 49 ms
58,524 KB
testcase_03 AC 48 ms
57,852 KB
testcase_04 AC 31 ms
53,048 KB
testcase_05 AC 31 ms
52,656 KB
testcase_06 AC 35 ms
58,628 KB
testcase_07 AC 38 ms
58,596 KB
testcase_08 AC 33 ms
52,920 KB
testcase_09 AC 32 ms
53,008 KB
testcase_10 AC 34 ms
58,392 KB
testcase_11 AC 36 ms
58,036 KB
testcase_12 AC 31 ms
52,352 KB
testcase_13 AC 35 ms
52,232 KB
testcase_14 AC 31 ms
52,272 KB
testcase_15 AC 30 ms
53,824 KB
testcase_16 AC 32 ms
53,204 KB
testcase_17 AC 32 ms
52,080 KB
testcase_18 AC 31 ms
52,628 KB
testcase_19 AC 31 ms
52,200 KB
testcase_20 AC 31 ms
53,144 KB
testcase_21 AC 30 ms
53,208 KB
testcase_22 AC 31 ms
52,368 KB
testcase_23 AC 33 ms
52,340 KB
testcase_24 AC 32 ms
52,016 KB
testcase_25 AC 31 ms
53,012 KB
testcase_26 AC 31 ms
52,560 KB
testcase_27 AC 31 ms
53,476 KB
testcase_28 AC 32 ms
52,836 KB
testcase_29 AC 32 ms
53,672 KB
testcase_30 AC 35 ms
57,848 KB
testcase_31 AC 32 ms
52,484 KB
testcase_32 AC 36 ms
57,980 KB
testcase_33 AC 38 ms
58,500 KB
testcase_34 AC 37 ms
57,912 KB
testcase_35 AC 33 ms
59,380 KB
testcase_36 AC 31 ms
52,344 KB
testcase_37 AC 35 ms
53,592 KB
testcase_38 AC 33 ms
53,120 KB
testcase_39 AC 32 ms
53,264 KB
testcase_40 AC 32 ms
52,252 KB
testcase_41 AC 33 ms
53,368 KB
testcase_42 AC 32 ms
52,832 KB
testcase_43 AC 31 ms
53,196 KB
testcase_44 AC 33 ms
52,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for i in range(3,int(N**0.5)+10):
    if N%i==0:
        print(i)
        exit()
if N%2==0:
    print(N//2)
else:
    print(N)
0