結果
| 問題 | No.375 立方体のN等分 (1) |
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2016-06-04 22:49:19 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 363 bytes |
| 記録 | |
| コンパイル時間 | 365 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 21,756 KB |
| 最終ジャッジ日時 | 2026-04-24 15:03:00 |
| 合計ジャッジ時間 | 7,603 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
compass19