結果
問題 | No.312 置換処理 |
ユーザー |
![]() |
提出日時 | 2015-12-07 21:07:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 301 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-14 18:30:02 |
合計ジャッジ時間 | 3,918 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 44 WA * 1 |
ソースコード
def solve(): from math import sqrt n = int(input()) x = 3 while x <= sqrt(n): if n % x == 0: print(x) return x += 1 print(int(n / 2) if n % 2 == 0 else n) solve()