結果

問題 No.376 立方体のN等分 (2)
ユーザー tookunn_1213tookunn_1213
提出日時 2016-06-05 01:46:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 161 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 62,976 KB
最終ジャッジ日時 2024-04-17 03:46:32
合計ジャッジ時間 14,406 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,968 KB
testcase_01 AC 38 ms
52,352 KB
testcase_02 AC 153 ms
59,904 KB
testcase_03 AC 152 ms
60,544 KB
testcase_04 AC 172 ms
58,368 KB
testcase_05 AC 36 ms
52,224 KB
testcase_06 AC 36 ms
52,096 KB
testcase_07 AC 35 ms
51,968 KB
testcase_08 AC 45 ms
57,472 KB
testcase_09 AC 66 ms
57,472 KB
testcase_10 AC 156 ms
62,464 KB
testcase_11 WA -
testcase_12 AC 119 ms
59,520 KB
testcase_13 AC 118 ms
58,112 KB
testcase_14 AC 128 ms
57,716 KB
testcase_15 WA -
testcase_16 AC 1,627 ms
62,720 KB
testcase_17 AC 152 ms
57,600 KB
testcase_18 WA -
testcase_19 AC 161 ms
59,392 KB
testcase_20 AC 160 ms
57,772 KB
testcase_21 AC 1,649 ms
62,976 KB
testcase_22 AC 165 ms
57,344 KB
testcase_23 AC 1,702 ms
62,592 KB
testcase_24 AC 1,636 ms
62,464 KB
testcase_25 AC 168 ms
57,216 KB
testcase_26 AC 1,866 ms
62,976 KB
testcase_27 WA -
testcase_28 AC 171 ms
57,472 KB
testcase_29 AC 172 ms
57,344 KB
testcase_30 AC 170 ms
57,728 KB
testcase_31 AC 170 ms
57,728 KB
testcase_32 AC 170 ms
57,600 KB
testcase_33 AC 171 ms
58,112 KB
testcase_34 AC 171 ms
57,600 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 172 ms
57,856 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