会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
leaver
吾心即是归处
博客园
首页
新随笔
联系
订阅
管理
2011年12月28日
Ural 1014 Product of Digits NYOJ 270 数的分解 解题报告
摘要: 题意:是找到一个最小的正整数Q,使Q的各位数的乘积等于N。思路:从9到2取余。#include <iostream>#include <algorithm>using namespace std;bool fun(int x,int *ops,int &num){ if(x==1) return 1; for(int i=9;i>=2;i--) { if(x%i==0) { ops[num]=i; //ops存储分解后的数集合 ...
阅读全文
posted @ 2011-12-28 23:08 lazycoding
阅读(251)
评论(0)
推荐(0)
编辑
公告