結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,400 KB
testcase_01 AC 33 ms
52,208 KB
testcase_02 AC 46 ms
61,512 KB
testcase_03 AC 35 ms
52,268 KB
testcase_04 AC 33 ms
52,376 KB
testcase_05 AC 33 ms
52,632 KB
testcase_06 AC 36 ms
57,972 KB
testcase_07 AC 39 ms
58,320 KB
testcase_08 AC 51 ms
62,352 KB
testcase_09 AC 37 ms
58,880 KB
testcase_10 AC 39 ms
58,380 KB
testcase_11 AC 39 ms
58,964 KB
testcase_12 AC 40 ms
58,868 KB
testcase_13 AC 37 ms
58,180 KB
testcase_14 AC 60 ms
63,012 KB
testcase_15 AC 39 ms
58,544 KB
testcase_16 AC 39 ms
57,828 KB
testcase_17 AC 99 ms
63,492 KB
testcase_18 AC 58 ms
61,876 KB
testcase_19 AC 41 ms
57,984 KB
testcase_20 AC 39 ms
58,188 KB
testcase_21 AC 40 ms
58,488 KB
testcase_22 AC 155 ms
63,500 KB
testcase_23 AC 38 ms
58,932 KB
testcase_24 AC 39 ms
58,104 KB
testcase_25 AC 44 ms
61,244 KB
testcase_26 AC 40 ms
58,584 KB
testcase_27 AC 41 ms
58,716 KB
testcase_28 AC 39 ms
57,948 KB
testcase_29 AC 38 ms
57,928 KB
testcase_30 AC 38 ms
57,704 KB
testcase_31 AC 38 ms
57,988 KB
testcase_32 AC 39 ms
57,888 KB
testcase_33 AC 38 ms
58,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(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