Home >Backend Development >PHP Tutorial > 急数字重组计算有关问题

急数字重组计算有关问题

WBOY
WBOYOriginal
2016-06-13 12:45:59872browse

急.....数字重组计算问题

本帖最后由 staryjk 于 2013-05-15 12:58:27 编辑 问题描述:
现在有一组数字需要计算重组后总数,以最快的速度计算出总数.
数字不一定就是给出的这些,也有可能是其它数字
数字:
例一
1->0123
2->01234
3->678
总数:60


例二
1->0123456789
2->0123456789
3->01234
总数:500


写一个方法计算出重组后的总数和重组后的号码

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn