結果
| 問題 |
No.375 立方体のN等分 (1)
|
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2016-06-05 12:04:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 537 ms / 5,000 ms |
| コード長 | 224 bytes |
| コンパイル時間 | 351 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 16,256 KB |
| 最終ジャッジ日時 | 2024-10-11 21:03:16 |
| 合計ジャッジ時間 | 3,959 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 32 |
ソースコード
n = int(input()) l = int(n**(1/2)) y = [i for i in range(1,l+1) if n%i == 0] x = [n//i for i in y] y = y + x x = [a+b+n//(a*b)-3 for a in y if a**3 <= n for b in y if b >= a and n%(a*b) == 0 and a*b*b <= n] print(min(x),n-1)
compass19