科迪
Example
If
extras = 22222
then we can see by inspection that one solution is
census = [1 7 7 2 1 1 1 3 1 1]
as shown below
-------------------------------------------- | Here are some extra numbers: 22222 | | The number of 0's inside the box is: 1 | | The number of 1's inside the box is: 7 | | The number of 2's inside the box is: 7 | | The number of 3's inside the box is: 2 | | The number of 4's inside the box is: 1 | | The number of 5's inside the box is: 1 | | The number of 6's inside the box is: 1 | | The number of 7's inside the box is: 3 | | The number of 8's inside the box is: 1 | | The number of 9's inside the box is: 1 | --------------------------------------------
In general, your answer might not be unique. We'll just test whether you meet the criteria.
看起来像一个整洁的问题,但我有一个问题在你的示例解决方案无需额外数量:如果我阅读它正确,应该有两个4 s盒。第二个4在哪里?
好赶上詹姆斯!谢谢。这是一个数据输入问题。现在应该是固定的。
好问题!但我可能会有一些误解你的问题。我自己的解决方案没有收敛测试用例6。保证收敛吗?你能提供一个示例解决方案测试用例6 ?
彭你好,谢谢你的注意。我看到你的解决方案现在万博 尤文图斯做的很好,所有的测试用例!:-)
发现完全平方数
解决13264
你所有的基地都属于我们
解决486
两个向量的矩阵索引指数
解决587
创建增量螺旋不使用EVAL函数宏指令
解决40
5根
解决531
将荷马喜欢吗?
14日解决
珠子项链(凸壳)
43岁的解决者
把两个时间序列在同一时间
解决233
绝命毒师瓷砖(拼写与元素符号)
11日解决
做一个运行周期的同伴向量
解决585
找到宝藏在MATLAB中央,发现社区如何帮助你!
选择一个网站
选择一个网站翻译内容,看到当地事件和提供。根据你的位置,我们建议您选择:。
你也可以从下面的列表中选择一个网站:
选择中国网站(中文或英文)最佳站点的性能。其他MathWorks国家网站不优化的访问你的位置。
联系你当地的办公室