Here is a problem that I can't solve and also can't find any good solution...please help me. Problem link
# | User | Rating |
---|---|---|
1 | jiangly | 3898 |
2 | tourist | 3840 |
3 | orzdevinwang | 3706 |
4 | ksun48 | 3691 |
5 | jqdai0815 | 3682 |
6 | ecnerwala | 3525 |
7 | gamegame | 3477 |
8 | Benq | 3468 |
9 | Ormlis | 3381 |
10 | maroonrk | 3379 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | Dominater069 | 161 |
4 | Um_nik | 160 |
5 | atcoder_official | 159 |
6 | djm03178 | 157 |
7 | adamant | 153 |
8 | luogu_official | 150 |
9 | awoo | 149 |
10 | TheScrasse | 146 |
Here is a problem that I can't solve and also can't find any good solution...please help me. Problem link
Name |
---|
Auto comment: topic has been updated by fer-de-lance (previous revision, new revision, compare).
why people aren't help??
I don't know if it's correct or not but think like this. At first, you need 12 sticks to make a cube. Now, the optimal way to place a second cube will be to share it with one face of the first cube. Hence, the number of sticks required will be
12 - 4 = 8
. Now, For third cube, you have to place it with a face common with first or second cube, but make sure that it's perpendicular to the first two cubes. Here, number of sticks required will be12 - 4 = 8
. Now, for the fourth cube, there is already a place left to place with with two faces sharing between first and third (or second and third) cubes. Here the number of sticks required will be12 - 4 - 4 + 1 = 5
. Now just repeat this process.It's probably getting the biggest perfect cube <= n and making a huge cube with these dimensions. Then you can place more matches on the borders of this huge cube to fill up the remaining unit cubes.