結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,532 KB
testcase_01 AC 37 ms
53,600 KB
testcase_02 AC 46 ms
60,732 KB
testcase_03 AC 32 ms
53,148 KB
testcase_04 AC 33 ms
52,460 KB
testcase_05 AC 33 ms
52,952 KB
testcase_06 AC 36 ms
57,924 KB
testcase_07 AC 39 ms
58,780 KB
testcase_08 AC 51 ms
62,704 KB
testcase_09 AC 39 ms
57,792 KB
testcase_10 AC 40 ms
58,812 KB
testcase_11 AC 39 ms
58,076 KB
testcase_12 AC 39 ms
57,872 KB
testcase_13 AC 41 ms
58,308 KB
testcase_14 AC 59 ms
61,748 KB
testcase_15 AC 41 ms
59,140 KB
testcase_16 AC 40 ms
57,716 KB
testcase_17 AC 91 ms
63,344 KB
testcase_18 AC 58 ms
61,508 KB
testcase_19 AC 41 ms
58,308 KB
testcase_20 AC 41 ms
58,380 KB
testcase_21 AC 40 ms
58,516 KB
testcase_22 AC 141 ms
62,652 KB
testcase_23 AC 41 ms
58,500 KB
testcase_24 AC 42 ms
58,868 KB
testcase_25 AC 45 ms
60,632 KB
testcase_26 AC 42 ms
57,908 KB
testcase_27 AC 42 ms
58,316 KB
testcase_28 AC 43 ms
57,756 KB
testcase_29 AC 42 ms
57,876 KB
testcase_30 AC 41 ms
57,992 KB
testcase_31 AC 43 ms
58,496 KB
testcase_32 AC 41 ms
57,452 KB
testcase_33 AC 42 ms
57,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input());m,y,i=10**11,[],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);m=min(m,a-1+b-1+c-1)
print(m,N-1)
0