結果
問題 |
No.375 立方体のN等分 (1)
|
ユーザー |
![]() |
提出日時 | 2020-02-05 23:05:10 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 701,660 KB |
最終ジャッジ日時 | 2024-09-23 06:11:05 |
合計ジャッジ時間 | 24,636 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 30 WA * 1 MLE * 1 |
ソースコード
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines import numpy as np N = int(read()) x = np.arange(1, 320000, dtype=np.int64) div = x[N % x == 0] div = np.union1d(div, N // div) x, y = np.meshgrid(div, div) z, r = np.divmod(N, x * y) ind = r == 0 T = (x + y + z - 3)[ind] print(T.min(), T.max())