結果

問題 No.375 立方体のN等分 (1)
ユーザー tookunn_1213tookunn_1213
提出日時 2016-06-05 02:04:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 152 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 62,840 KB
最終ジャッジ日時 2024-04-20 02:08:28
合計ジャッジ時間 2,551 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,252 KB
testcase_01 AC 33 ms
53,192 KB
testcase_02 AC 44 ms
60,532 KB
testcase_03 AC 33 ms
52,616 KB
testcase_04 AC 35 ms
52,596 KB
testcase_05 AC 33 ms
52,800 KB
testcase_06 AC 37 ms
58,040 KB
testcase_07 AC 38 ms
58,816 KB
testcase_08 AC 49 ms
61,440 KB
testcase_09 AC 36 ms
57,828 KB
testcase_10 AC 39 ms
59,236 KB
testcase_11 AC 39 ms
58,860 KB
testcase_12 AC 38 ms
58,520 KB
testcase_13 AC 38 ms
58,248 KB
testcase_14 AC 55 ms
61,584 KB
testcase_15 AC 39 ms
57,640 KB
testcase_16 AC 39 ms
58,016 KB
testcase_17 AC 87 ms
62,840 KB
testcase_18 AC 56 ms
61,080 KB
testcase_19 AC 39 ms
58,008 KB
testcase_20 AC 38 ms
58,180 KB
testcase_21 AC 38 ms
58,128 KB
testcase_22 AC 135 ms
62,212 KB
testcase_23 AC 40 ms
58,500 KB
testcase_24 AC 38 ms
58,244 KB
testcase_25 AC 43 ms
60,764 KB
testcase_26 AC 39 ms
59,180 KB
testcase_27 AC 39 ms
58,700 KB
testcase_28 AC 37 ms
57,936 KB
testcase_29 AC 40 ms
59,596 KB
testcase_30 AC 40 ms
57,988 KB
testcase_31 AC 39 ms
58,600 KB
testcase_32 AC 40 ms
58,732 KB
testcase_33 AC 38 ms
57,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input());m,y,i=40**9,[],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:m=min(m,a+b+N//(a*b)-3)
print(m,N-1)
0