結果
問題 |
No.375 立方体のN等分 (1)
|
ユーザー |
![]() |
提出日時 | 2016-06-04 22:49:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 363 bytes |
コンパイル時間 | 341 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,952 KB |
最終ジャッジ日時 | 2024-10-08 08:54:23 |
合計ジャッジ時間 | 6,896 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | TLE * 1 -- * 31 |
ソースコード
n = int(input()) stock = [] def find(l): global stock stock = [] for i in range(l+1): for j in range(i+1): for k in range(j+1): if i+j+k ==l: stock.append([i+1,j+1,k+1]) def cal(): for i in stock: if i[0]*i[1]*i[2] == n: return True return False l = 1 sigh = False while not sigh: find(l) sigh = cal() l = l + 1 m = l-1 print(m, n-1)