結果

問題 No.376 立方体のN等分 (2)
ユーザー pluto77pluto77
提出日時 2018-02-09 13:58:48
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 1,932 ms / 5,000 ms
コード長 187 bytes
コンパイル時間 2,153 ms
コンパイル使用メモリ 76,544 KB
実行使用メモリ 77,824 KB
最終ジャッジ日時 2024-04-15 23:11:04
合計ジャッジ時間 18,453 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
75,520 KB
testcase_01 AC 81 ms
75,136 KB
testcase_02 AC 200 ms
77,056 KB
testcase_03 AC 198 ms
77,696 KB
testcase_04 AC 212 ms
76,672 KB
testcase_05 AC 79 ms
75,520 KB
testcase_06 AC 80 ms
75,648 KB
testcase_07 AC 78 ms
75,520 KB
testcase_08 AC 86 ms
76,416 KB
testcase_09 AC 107 ms
76,160 KB
testcase_10 AC 210 ms
77,696 KB
testcase_11 AC 138 ms
76,416 KB
testcase_12 AC 164 ms
76,416 KB
testcase_13 AC 163 ms
76,176 KB
testcase_14 AC 172 ms
76,160 KB
testcase_15 AC 182 ms
76,304 KB
testcase_16 AC 1,695 ms
77,824 KB
testcase_17 AC 194 ms
76,672 KB
testcase_18 AC 197 ms
76,032 KB
testcase_19 AC 204 ms
76,800 KB
testcase_20 AC 203 ms
76,160 KB
testcase_21 AC 1,725 ms
77,596 KB
testcase_22 AC 207 ms
76,732 KB
testcase_23 AC 1,768 ms
77,496 KB
testcase_24 AC 1,700 ms
77,440 KB
testcase_25 AC 209 ms
76,160 KB
testcase_26 AC 1,932 ms
77,440 KB
testcase_27 AC 210 ms
76,672 KB
testcase_28 AC 213 ms
76,544 KB
testcase_29 AC 212 ms
76,544 KB
testcase_30 AC 219 ms
76,416 KB
testcase_31 AC 214 ms
76,032 KB
testcase_32 AC 212 ms
76,304 KB
testcase_33 AC 212 ms
76,184 KB
testcase_34 AC 215 ms
76,544 KB
testcase_35 AC 214 ms
76,792 KB
testcase_36 AC 214 ms
76,180 KB
testcase_37 AC 211 ms
76,800 KB
testcase_38 AC 212 ms
76,312 KB
testcase_39 AC 214 ms
76,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki376

res=float('inf')
n=int(raw_input())
l=[]
i=1
while i*i<=n:
 if n%i==0:
  l.append(i)
 i+=1
for a in l:
 for b in l:
  if n%(a*b)==0:
   res=min(res,a+b+n/(a*b))
print res-3,n-1
0