注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 ryudo87 于 2019-7-21 11:09 编辑
他们家的test, 大家的想法是什么? 我想到暴力搜索 , 优化的话感觉可以动态规划但是想不出来
Consider the problem of building a wall out of 21 and 31 bricks (horizontalvertical dimensions) such that, for extra strength, the gaps between horizontally-adjacent bricks never line up in consecutive layers, i.e. never form a "running crack".For example, the following 93 wall is not acceptable due to the running cra, we will not be asking you to resubmit your code and will consider your submission to be a failure. To be on the safe side, please only send text files, such as source code and make files or project files, in your zip file
|