結果
問題 | No.312 置換処理 |
ユーザー |
|
提出日時 | 2022-03-17 21:55:25 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 201 bytes |
コンパイル時間 | 335 ms |
コンパイル使用メモリ | 82,556 KB |
実行使用メモリ | 59,028 KB |
最終ジャッジ日時 | 2024-10-01 20:52:37 |
合計ジャッジ時間 | 3,240 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)