結果

問題 No.312 置換処理
ユーザー sue_charo
提出日時 2017-04-13 18:58:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-18 12:57:08
合計ジャッジ時間 3,881 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 40 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
import math

N = int(input())

num = 3
while True:
    if N % num == 0:
        break
    
    if num > math.sqrt(N):
        num = N
        break
    
    num += 1
    

print(num)
0