結果
問題 | No.376 立方体のN等分 (2) |
ユーザー | maspy |
提出日時 | 2020-03-07 04:27:34 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 334 bytes |
コンパイル時間 | 223 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 830,024 KB |
最終ジャッジ日時 | 2024-04-22 11:49:17 |
合計ジャッジ時間 | 16,167 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 739 ms
207,692 KB |
testcase_01 | AC | 666 ms
207,476 KB |
testcase_02 | AC | 634 ms
207,868 KB |
testcase_03 | AC | 700 ms
207,608 KB |
testcase_04 | AC | 621 ms
207,472 KB |
testcase_05 | AC | 656 ms
208,144 KB |
testcase_06 | AC | 638 ms
207,688 KB |
testcase_07 | AC | 632 ms
207,956 KB |
testcase_08 | AC | 647 ms
207,696 KB |
testcase_09 | AC | 620 ms
207,804 KB |
testcase_10 | AC | 906 ms
295,120 KB |
testcase_11 | AC | 648 ms
207,348 KB |
testcase_12 | AC | 627 ms
207,888 KB |
testcase_13 | AC | 657 ms
207,540 KB |
testcase_14 | AC | 650 ms
207,564 KB |
testcase_15 | AC | 637 ms
207,348 KB |
testcase_16 | MLE | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
testcase_39 | -- | - |
ソースコード
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, 10**7, 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())