結果

問題 No.312 置換処理
ユーザー sue_charosue_charo
提出日時 2017-04-13 18:59:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 237 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 8,040 KB
最終ジャッジ日時 2023-09-25 16:27:13
合計ジャッジ時間 3,918 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,872 KB
testcase_01 RE -
testcase_02 WA -
testcase_03 RE -
testcase_04 WA -
testcase_05 AC 15 ms
7,892 KB
testcase_06 AC 32 ms
7,992 KB
testcase_07 AC 108 ms
7,824 KB
testcase_08 AC 16 ms
7,992 KB
testcase_09 AC 16 ms
7,992 KB
testcase_10 AC 16 ms
7,888 KB
testcase_11 AC 46 ms
7,876 KB
testcase_12 AC 16 ms
7,956 KB
testcase_13 AC 16 ms
7,896 KB
testcase_14 AC 16 ms
7,984 KB
testcase_15 AC 15 ms
7,892 KB
testcase_16 AC 16 ms
8,004 KB
testcase_17 AC 15 ms
7,900 KB
testcase_18 AC 16 ms
7,908 KB
testcase_19 AC 15 ms
7,804 KB
testcase_20 AC 16 ms
7,896 KB
testcase_21 AC 16 ms
7,912 KB
testcase_22 AC 16 ms
7,912 KB
testcase_23 RE -
testcase_24 WA -
testcase_25 AC 16 ms
7,904 KB
testcase_26 WA -
testcase_27 RE -
testcase_28 AC 15 ms
7,912 KB
testcase_29 RE -
testcase_30 RE -
testcase_31 AC 16 ms
7,936 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 26 ms
7,836 KB
testcase_36 AC 16 ms
7,824 KB
testcase_37 AC 15 ms
7,860 KB
testcase_38 AC 17 ms
7,916 KB
testcase_39 AC 17 ms
7,900 KB
testcase_40 AC 17 ms
7,836 KB
testcase_41 AC 16 ms
7,884 KB
testcase_42 AC 16 ms
7,876 KB
testcase_43 AC 16 ms
7,824 KB
testcase_44 AC 16 ms
7,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
import math

N = int(input())

num = 3
while True:
    if N % num == 0:
        break

    if num > math.sqrt(N):
        if N % 2 == 0:
            num = n // 2
        else:
            break

    num += 1


print(num)
0