結果

問題 No.376 立方体のN等分 (2)
ユーザー tookunn_1213tookunn_1213
提出日時 2016-06-05 01:47:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,692 ms / 5,000 ms
コード長 161 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 63,044 KB
最終ジャッジ日時 2024-04-24 13:43:58
合計ジャッジ時間 13,879 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,840 KB
testcase_01 AC 36 ms
51,840 KB
testcase_02 AC 139 ms
59,648 KB
testcase_03 AC 138 ms
60,544 KB
testcase_04 AC 156 ms
58,624 KB
testcase_05 AC 32 ms
51,840 KB
testcase_06 AC 32 ms
51,760 KB
testcase_07 AC 34 ms
51,840 KB
testcase_08 AC 43 ms
57,472 KB
testcase_09 AC 61 ms
57,600 KB
testcase_10 AC 148 ms
62,336 KB
testcase_11 AC 88 ms
57,600 KB
testcase_12 AC 127 ms
59,392 KB
testcase_13 AC 127 ms
57,216 KB
testcase_14 AC 133 ms
57,472 KB
testcase_15 AC 145 ms
57,600 KB
testcase_16 AC 1,600 ms
62,720 KB
testcase_17 AC 137 ms
57,856 KB
testcase_18 AC 141 ms
57,728 KB
testcase_19 AC 145 ms
59,264 KB
testcase_20 AC 146 ms
57,216 KB
testcase_21 AC 1,500 ms
63,044 KB
testcase_22 AC 154 ms
57,856 KB
testcase_23 AC 1,570 ms
62,592 KB
testcase_24 AC 1,496 ms
62,720 KB
testcase_25 AC 152 ms
57,728 KB
testcase_26 AC 1,692 ms
62,848 KB
testcase_27 AC 159 ms
57,216 KB
testcase_28 AC 154 ms
57,856 KB
testcase_29 AC 155 ms
57,728 KB
testcase_30 AC 156 ms
57,344 KB
testcase_31 AC 162 ms
57,984 KB
testcase_32 AC 153 ms
57,856 KB
testcase_33 AC 155 ms
57,472 KB
testcase_34 AC 156 ms
57,216 KB
testcase_35 AC 155 ms
57,600 KB
testcase_36 AC 164 ms
57,472 KB
testcase_37 AC 177 ms
57,728 KB
testcase_38 AC 161 ms
57,984 KB
testcase_39 AC 158 ms
57,600 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