結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-11-02 10:34:30 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 2,000 ms |
| + 748µs | |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 225 ms |
| コンパイル使用メモリ | 96,060 KB |
| 実行使用メモリ | 83,200 KB |
| 最終ジャッジ日時 | 2026-08-14 11:20:23 |
| 合計ジャッジ時間 | 5,458 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 45 |
ソースコード
N = int(input())
import sys
if N <= 5:
print(N)
exit()
d = 3
while d * d <= N:
if N % d == 0:
print(d)
exit()
d += 1
if N % 2 == 0:
print(N//2)
else:
print(N)
nohakai3