TIMUS 1014. Product of Digits
来源:互联网 发布:iphone微信数据慢 编辑:程序博客网 时间:2024/06/06 16:58
题目如下:
Your task is to find the minimal positive integer number Q so that the product of digits of Q is exactly equal to N.
Input
The input contains the single integer number N (0 ≤ N ≤ 109).
Output
Your program should print to the output the only number Q. If such a number does not exist print −1.
Sample
10
25
题目比较简单,求各位数相乘等于给定数的最小数。 要注意给0的情况,按题意,结果不是0也不是-1,而是10,因为这个错了WE N次。
代码:
- TIMUS 1014. Product of Digits
- Timus Online Judge初级题目:1014. Product of Digits
- 1014. Product of Digits
- 1014. Product of Digits
- Timus 1658. Sum of Digits
- Ural-1014. Product of Digits(简单题)
- ural 1014. Product of Digits贪心
- 993 - Product of digits
- 993 - Product of digits
- Ural1014-Product of Digits
- uva993 Product of digits
- Timus Online Judge 1658 Sum of Digits
- ural 1014 Product of Digits
- UVa 993 - Product of digits
- UVa 993 - Product of digits
- uva 993 - Product of digits
- uva 993 - Product of digits
- UVA 993 Product of digits
- Symbian 阻止安装
- poj 1410(判断直线是否相交)
- Symbian 创建线程
- 反编译Myeclipse产生注册码
- mysql在select语句的自动增长字段。
- TIMUS 1014. Product of Digits
- Symbian 动态改变CAB
- arm中各始终之间的关系,FCLK HCLK PCLK的关系
- Hero Shoot Eagle
- Android培训班(47)
- 在IE8下的table tr使用toggle()无法生效的bug的解决方法
- Symbian 软件使用系统皮肤
- mssql server2000安装
- CMOS Sensor Interface(CSI)