結果

問題 No.375 立方体のN等分 (1)
ユーザー tookunn_1213tookunn_1213
提出日時 2016-06-06 10:55:17
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 184 ms / 5,000 ms
コード長 142 bytes
コンパイル時間 1,844 ms
コンパイル使用メモリ 76,188 KB
実行使用メモリ 77,860 KB
最終ジャッジ日時 2024-04-20 02:12:26
合計ジャッジ時間 5,405 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
75,436 KB
testcase_01 AC 67 ms
75,424 KB
testcase_02 AC 82 ms
77,448 KB
testcase_03 AC 65 ms
75,564 KB
testcase_04 AC 64 ms
75,780 KB
testcase_05 AC 66 ms
75,580 KB
testcase_06 AC 68 ms
76,304 KB
testcase_07 AC 71 ms
76,460 KB
testcase_08 AC 85 ms
77,464 KB
testcase_09 AC 70 ms
76,304 KB
testcase_10 AC 78 ms
76,316 KB
testcase_11 AC 72 ms
76,100 KB
testcase_12 AC 68 ms
76,428 KB
testcase_13 AC 76 ms
76,208 KB
testcase_14 AC 96 ms
77,860 KB
testcase_15 AC 73 ms
76,604 KB
testcase_16 AC 80 ms
76,176 KB
testcase_17 AC 140 ms
77,860 KB
testcase_18 AC 87 ms
77,712 KB
testcase_19 AC 68 ms
76,604 KB
testcase_20 AC 71 ms
76,444 KB
testcase_21 AC 71 ms
76,576 KB
testcase_22 AC 184 ms
77,720 KB
testcase_23 AC 68 ms
76,196 KB
testcase_24 AC 70 ms
76,296 KB
testcase_25 AC 77 ms
77,368 KB
testcase_26 AC 70 ms
76,072 KB
testcase_27 AC 68 ms
76,204 KB
testcase_28 AC 67 ms
76,300 KB
testcase_29 AC 69 ms
76,420 KB
testcase_30 AC 76 ms
76,564 KB
testcase_31 AC 76 ms
76,176 KB
testcase_32 AC 70 ms
76,216 KB
testcase_33 AC 68 ms
76,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=input();m,y,i=40**9,{},1
while i*i<=N:
 if N%i==0:y[i]=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