結果

問題 No.376 立方体のN等分 (2)
ユーザー pluto77pluto77
提出日時 2016-09-11 18:15:19
言語 PyPy2
(7.3.15)
結果
TLE  
実行時間 -
コード長 217 bytes
コンパイル時間 1,466 ms
コンパイル使用メモリ 76,928 KB
実行使用メモリ 83,072 KB
最終ジャッジ日時 2024-04-28 12:11:19
合計ジャッジ時間 14,824 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
75,136 KB
testcase_01 AC 85 ms
75,520 KB
testcase_02 AC 636 ms
76,416 KB
testcase_03 AC 1,289 ms
77,952 KB
testcase_04 AC 870 ms
76,672 KB
testcase_05 AC 87 ms
75,520 KB
testcase_06 AC 87 ms
75,520 KB
testcase_07 AC 88 ms
75,264 KB
testcase_08 AC 103 ms
76,544 KB
testcase_09 AC 137 ms
76,800 KB
testcase_10 AC 1,149 ms
77,440 KB
testcase_11 AC 273 ms
76,544 KB
testcase_12 AC 563 ms
77,184 KB
testcase_13 AC 253 ms
76,672 KB
testcase_14 AC 306 ms
76,672 KB
testcase_15 AC 205 ms
77,056 KB
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: utf-8
#yuki376
import math

n=int(raw_input())
temp=n
i=1
while i**3<=n:
 if n%i==0:
  m=n/i
  j=1
  while j*j<=m:
   if m%j==0:
    k=m/j
    if temp>i+j+k-3:
     temp=i+j+k-3
   j+=1
 i+=1

print temp,n-1
0