結果
問題 | No.312 置換処理 |
ユーザー |
![]() |
提出日時 | 2022-11-02 10:34:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 201 bytes |
コンパイル時間 | 269 ms |
コンパイル使用メモリ | 82,036 KB |
実行使用メモリ | 57,984 KB |
最終ジャッジ日時 | 2024-07-16 17:47:57 |
合計ジャッジ時間 | 3,798 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 45 |
ソースコード
N = int(input())import sysif N <= 5:print(N)exit()d = 3while d * d <= N:if N % d == 0:print(d)exit()d += 1if N % 2 == 0:print(N//2)else:print(N)