找到最佳的方法来存放你的箱子。
wwu的Python项目详细描述
WWU
你有没有有限的存储空间和一堆箱子可以存放?wwu告诉你往上走的路最好。在
就存储而言,盒子有6个排列,目前wwu提供了一个排列的索引值,因此您只能接收0-5范围内的值。在
示例
fromwwuimportBoxb=Box(10,10,20)# Create a box with 10 x 10 x 20 dimensions.b.wwu(10,10,20)# Find the optimal permutation in storage space of 10 x 10 x 20>>>0
安装
^{pr2}$测试
pytest
========================================= test session starts ==========================================
platform linux -- Python 3.7.4, pytest-5.1.2, py-1.8.0, pluggy-0.12.0
rootdir: /var/home/Um9i/Documents/wwu
collected 2 items
tests/test_wwu.py .. [100%]
========================================== 2 passed in 0.01s ===========================================
- 项目
标签: