結果
問題 |
No.375 立方体のN等分 (1)
|
ユーザー |
![]() |
提出日時 | 2016-06-04 22:50:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 196 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-08 08:55:05 |
合計ジャッジ時間 | 2,137 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 1 WA * 31 |
ソースコード
N = int(input()) maxAns = N - 1 n = N div = 2 while n % 2 == 0: while n % div == 0: n //= div div += 1 if n > 0: minAns = N // n minAns = N - 1 if N % 2 == 1 else minAns print(minAns,maxAns)