結果
問題 | No.376 立方体のN等分 (2) |
ユーザー | pluto77 |
提出日時 | 2017-03-02 09:34:12 |
言語 | PyPy2 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 202 bytes |
コンパイル時間 | 1,886 ms |
コンパイル使用メモリ | 77,264 KB |
実行使用メモリ | 78,740 KB |
最終ジャッジ日時 | 2023-09-03 20:25:27 |
合計ジャッジ時間 | 16,680 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 75 ms
76,260 KB |
testcase_01 | AC | 75 ms
76,412 KB |
testcase_02 | AC | 644 ms
78,548 KB |
testcase_03 | AC | 1,309 ms
78,640 KB |
testcase_04 | AC | 872 ms
78,576 KB |
testcase_05 | AC | 75 ms
76,400 KB |
testcase_06 | AC | 77 ms
76,436 KB |
testcase_07 | AC | 76 ms
76,216 KB |
testcase_08 | AC | 94 ms
78,628 KB |
testcase_09 | AC | 131 ms
78,504 KB |
testcase_10 | AC | 1,159 ms
78,704 KB |
testcase_11 | AC | 266 ms
78,740 KB |
testcase_12 | AC | 561 ms
78,548 KB |
testcase_13 | AC | 249 ms
78,372 KB |
testcase_14 | AC | 302 ms
78,596 KB |
testcase_15 | AC | 194 ms
78,476 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 | -- | - |
ソースコード
#yuki375 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