結果

問題 No.375 立方体のN等分 (1)
ユーザー tookunn_1213tookunn_1213
提出日時 2016-06-05 01:38:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 172 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 82,416 KB
実行使用メモリ 63,476 KB
最終ジャッジ日時 2024-04-20 02:07:11
合計ジャッジ時間 2,405 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,492 KB
testcase_01 AC 31 ms
52,348 KB
testcase_02 AC 42 ms
60,456 KB
testcase_03 AC 33 ms
52,724 KB
testcase_04 AC 34 ms
52,504 KB
testcase_05 AC 32 ms
52,820 KB
testcase_06 AC 35 ms
58,120 KB
testcase_07 AC 36 ms
58,312 KB
testcase_08 AC 47 ms
62,256 KB
testcase_09 AC 38 ms
57,840 KB
testcase_10 AC 35 ms
58,116 KB
testcase_11 AC 37 ms
57,508 KB
testcase_12 AC 36 ms
58,560 KB
testcase_13 AC 40 ms
58,284 KB
testcase_14 AC 55 ms
62,464 KB
testcase_15 AC 41 ms
57,776 KB
testcase_16 AC 39 ms
58,580 KB
testcase_17 AC 84 ms
62,612 KB
testcase_18 AC 55 ms
62,364 KB
testcase_19 AC 40 ms
57,788 KB
testcase_20 AC 38 ms
57,920 KB
testcase_21 AC 38 ms
58,056 KB
testcase_22 AC 133 ms
63,476 KB
testcase_23 AC 40 ms
58,848 KB
testcase_24 AC 39 ms
57,992 KB
testcase_25 AC 42 ms
61,392 KB
testcase_26 AC 40 ms
59,168 KB
testcase_27 AC 39 ms
59,044 KB
testcase_28 AC 38 ms
57,388 KB
testcase_29 AC 38 ms
57,804 KB
testcase_30 AC 40 ms
58,796 KB
testcase_31 AC 38 ms
58,416 KB
testcase_32 AC 40 ms
58,632 KB
testcase_33 AC 39 ms
58,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
mi=10**11
y=[]
i=1
while i*i<=N:
	if N%i==0:y.append(i)
	i+=1
for a in y:
	for b in y:
		if N%(a*b)==0:
			c=N//(a*b)
			mi=min(mi,a-1+b-1+c-1)
print(mi,N-1)
0