結果

問題 No.312 置換処理
ユーザー mlihua09mlihua09
提出日時 2020-08-28 20:49:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,280 KB
実行使用メモリ 59,112 KB
最終ジャッジ日時 2024-04-27 11:10:22
合計ジャッジ時間 3,160 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
52,656 KB
testcase_01 AC 50 ms
58,520 KB
testcase_02 AC 55 ms
57,364 KB
testcase_03 AC 54 ms
58,972 KB
testcase_04 AC 39 ms
53,880 KB
testcase_05 AC 39 ms
53,700 KB
testcase_06 AC 43 ms
58,964 KB
testcase_07 AC 45 ms
57,948 KB
testcase_08 AC 38 ms
52,828 KB
testcase_09 AC 42 ms
52,820 KB
testcase_10 AC 41 ms
59,112 KB
testcase_11 AC 42 ms
58,248 KB
testcase_12 AC 38 ms
53,224 KB
testcase_13 AC 38 ms
52,672 KB
testcase_14 AC 38 ms
52,480 KB
testcase_15 AC 40 ms
53,416 KB
testcase_16 AC 38 ms
54,036 KB
testcase_17 AC 37 ms
53,164 KB
testcase_18 AC 40 ms
52,452 KB
testcase_19 AC 38 ms
52,376 KB
testcase_20 AC 40 ms
52,960 KB
testcase_21 AC 38 ms
52,584 KB
testcase_22 AC 38 ms
52,380 KB
testcase_23 AC 38 ms
52,232 KB
testcase_24 AC 38 ms
53,200 KB
testcase_25 AC 38 ms
52,132 KB
testcase_26 AC 37 ms
53,276 KB
testcase_27 AC 38 ms
52,868 KB
testcase_28 AC 37 ms
52,740 KB
testcase_29 AC 38 ms
53,816 KB
testcase_30 AC 42 ms
57,712 KB
testcase_31 AC 38 ms
52,524 KB
testcase_32 AC 42 ms
58,600 KB
testcase_33 AC 45 ms
57,632 KB
testcase_34 AC 45 ms
57,972 KB
testcase_35 AC 41 ms
58,004 KB
testcase_36 AC 39 ms
52,788 KB
testcase_37 AC 37 ms
53,260 KB
testcase_38 AC 38 ms
53,012 KB
testcase_39 AC 38 ms
52,712 KB
testcase_40 AC 40 ms
52,256 KB
testcase_41 AC 40 ms
52,604 KB
testcase_42 AC 39 ms
52,524 KB
testcase_43 AC 38 ms
52,744 KB
testcase_44 AC 39 ms
52,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N = int(input())

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