結果

問題 No.376 立方体のN等分 (2)
ユーザー tookunn_1213tookunn_1213
提出日時 2016-06-05 01:47:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,921 ms / 5,000 ms
コード長 161 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 76,444 KB
最終ジャッジ日時 2023-08-06 18:59:25
合計ジャッジ時間 16,783 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,120 KB
testcase_01 AC 70 ms
71,308 KB
testcase_02 AC 196 ms
75,992 KB
testcase_03 AC 198 ms
76,248 KB
testcase_04 AC 217 ms
75,796 KB
testcase_05 AC 71 ms
71,308 KB
testcase_06 AC 71 ms
71,512 KB
testcase_07 AC 71 ms
71,608 KB
testcase_08 AC 79 ms
75,872 KB
testcase_09 AC 101 ms
75,776 KB
testcase_10 AC 198 ms
76,360 KB
testcase_11 AC 136 ms
75,748 KB
testcase_12 AC 159 ms
76,108 KB
testcase_13 AC 163 ms
75,816 KB
testcase_14 AC 170 ms
75,760 KB
testcase_15 AC 181 ms
75,604 KB
testcase_16 AC 1,678 ms
76,068 KB
testcase_17 AC 195 ms
75,600 KB
testcase_18 AC 196 ms
75,948 KB
testcase_19 AC 207 ms
76,204 KB
testcase_20 AC 205 ms
75,664 KB
testcase_21 AC 1,701 ms
76,304 KB
testcase_22 AC 205 ms
75,716 KB
testcase_23 AC 1,757 ms
76,288 KB
testcase_24 AC 1,685 ms
76,064 KB
testcase_25 AC 211 ms
75,796 KB
testcase_26 AC 1,921 ms
76,444 KB
testcase_27 AC 215 ms
75,592 KB
testcase_28 AC 217 ms
75,716 KB
testcase_29 AC 215 ms
75,760 KB
testcase_30 AC 214 ms
75,760 KB
testcase_31 AC 216 ms
75,924 KB
testcase_32 AC 224 ms
75,676 KB
testcase_33 AC 215 ms
75,712 KB
testcase_34 AC 217 ms
75,696 KB
testcase_35 AC 216 ms
75,624 KB
testcase_36 AC 214 ms
75,924 KB
testcase_37 AC 217 ms
75,688 KB
testcase_38 AC 214 ms
75,804 KB
testcase_39 AC 214 ms
75,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input());m,y,i=10**14,[],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