結果

問題 No.375 立方体のN等分 (1)
ユーザー maspy
提出日時 2020-02-05 23:06:16
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 352 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 211,596 KB
最終ジャッジ日時 2024-09-23 06:11:51
合計ジャッジ時間 26,200 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 1 WA * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

import numpy as np

N = int(read())

N = 97772875200

x = np.arange(1, 320000, dtype=np.int64)

div = x[N % x == 0]

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())
0