結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-28 20:49:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 198 bytes |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 82,240 KB |
| 実行使用メモリ | 59,404 KB |
| 最終ジャッジ日時 | 2024-11-15 12:37:17 |
| 合計ジャッジ時間 | 3,247 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 45 |
ソースコード
N = int(input())
for i in range(3, int(N ** 0.5) + 2):
if N % i == 0:
print(i)
exit()
if N % 2 or N == 4:
print(N)
else:
print(N // 2)