結果
問題 |
No.312 置換処理
|
ユーザー |
![]() |
提出日時 | 2019-12-01 22:42:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 179 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-21 20:42:34 |
合計ジャッジ時間 | 3,102 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 44 WA * 1 |
ソースコード
N = int(input()) def func(n): c = int(n**0.5) + 1 for i in range(3, c): if n % i == 0: return i return (n//2 if n % 2 == 0 else n) print(func(N))