結果

問題 No.312 置換処理
ユーザー wrb0312
提出日時 2018-04-21 01:29:28
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 298 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 17,828 KB
最終ジャッジ日時 2024-06-27 05:19:27
合計ジャッジ時間 3,817 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 TLE * 1 -- * 43
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())

for i in range(2, N):
    c = 0
    if i%2==0 and i != 2:
        continue
    for divisor in range(2, math.floor(math.sqrt(i))+1):
        if i % divisor == 0:
            c = 1
            break
    if c == 0 and N % i == 0 and i != 2:
        print(i)
        break
0