結果

問題 No.376 立方体のN等分 (2)
ユーザー tookunn_1213tookunn_1213
提出日時 2016-06-05 02:02:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,722 ms / 5,000 ms
コード長 152 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 62,720 KB
最終ジャッジ日時 2024-04-24 13:44:50
合計ジャッジ時間 13,630 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
51,456 KB
testcase_01 AC 38 ms
51,584 KB
testcase_02 AC 145 ms
59,264 KB
testcase_03 AC 142 ms
59,648 KB
testcase_04 AC 170 ms
58,240 KB
testcase_05 AC 37 ms
51,712 KB
testcase_06 AC 37 ms
51,840 KB
testcase_07 AC 39 ms
51,712 KB
testcase_08 AC 48 ms
57,344 KB
testcase_09 AC 64 ms
57,856 KB
testcase_10 AC 154 ms
62,208 KB
testcase_11 AC 91 ms
57,344 KB
testcase_12 AC 114 ms
59,136 KB
testcase_13 AC 114 ms
57,472 KB
testcase_14 AC 116 ms
57,344 KB
testcase_15 AC 128 ms
57,344 KB
testcase_16 AC 1,534 ms
62,720 KB
testcase_17 AC 141 ms
57,344 KB
testcase_18 AC 139 ms
57,728 KB
testcase_19 AC 147 ms
59,136 KB
testcase_20 AC 147 ms
57,600 KB
testcase_21 AC 1,520 ms
62,464 KB
testcase_22 AC 148 ms
57,088 KB
testcase_23 AC 1,579 ms
62,464 KB
testcase_24 AC 1,556 ms
62,592 KB
testcase_25 AC 158 ms
57,472 KB
testcase_26 AC 1,722 ms
62,336 KB
testcase_27 AC 162 ms
57,600 KB
testcase_28 AC 162 ms
57,472 KB
testcase_29 AC 157 ms
57,728 KB
testcase_30 AC 160 ms
57,344 KB
testcase_31 AC 156 ms
57,600 KB
testcase_32 AC 158 ms
57,472 KB
testcase_33 AC 159 ms
57,600 KB
testcase_34 AC 162 ms
57,472 KB
testcase_35 AC 158 ms
57,472 KB
testcase_36 AC 160 ms
57,088 KB
testcase_37 AC 156 ms
57,728 KB
testcase_38 AC 158 ms
57,472 KB
testcase_39 AC 161 ms
57,216 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