結果
| 問題 | No.8029 素因数 |
| コンテスト | |
| ユーザー |
👑 kmjp
|
| 提出日時 | 2017-03-31 23:29:45 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 77,844 KB |
| 最終ジャッジ日時 | 2025-12-03 23:21:58 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 WA * 2 RE * 18 |
ソースコード
A=1309020564363155364990198847863210152708042104341971929 M=input() if M==1: print "even" else: D=1 while M%2==0: M /= 2 D *= 2 if M==1: print "odd" else: MM=A%M while D>1 and MM%2==0: MM /= 2 D /= 2 if MM%2==0: assert 0 else: print "odd"
kmjp