题目:给你一个整数n,求一个数m,使得m的每个位数的乘积是n,求最小的m。
分析:贪心。直接从9到2枚举所有的因数,统计即可。如果还有大于9的素数这输出-1。
说明:今天Timus发邮件,说我的这个题目,在那边的解错了╮(╯▽╰)╭。
#include
#include
#include
using namespace std;
int save[10];
int main()...
分类:
其他好文 时间:
2014-08-18 14:36:42
阅读次数:
266
Docker 初次接触
最近看了不少docker介绍性文章,也听了不少公开课,于是今天去官网逛了逛,发现了一个交互式的小教程于是决定跟着学习下。只是把觉得重点的知识记录下来,不是很系统的学习和笔记。
理论部分
Docker 引擎包含了两个部分,一个守护进程作为服务器端来管理所有的容器。一个客户端,可以远程来控制服务端。Docker有公共的云端仓库 Docker Hub Regis...
分类:
其他好文 时间:
2014-08-18 01:35:23
阅读次数:
385
Managing Data in Containers
So far we've been introduced to some basic Docker concepts, seen how to work with Docker
images as well as learned about networking and links between containers. In th...
分类:
其他好文 时间:
2014-08-17 13:06:32
阅读次数:
271
Linking Containers Together
In the Using Docker section we touched on connecting to a service running inside a Docker container via a network port. This is one of
the ways that you can interact w...
分类:
其他好文 时间:
2014-08-17 11:46:32
阅读次数:
245
一般想要批量下载rtf模板我们都是用fndload来实现或者 perl download.pl来实现,今天看到一个比较有趣的方法
Hi,
Blob column 'template file data' below is just what you want, open it in PLSQL-DEVELOPER and save it as a rtf file or...
分类:
其他好文 时间:
2014-08-16 23:53:31
阅读次数:
540
1. The server just support POST&PUT method2. It is a Python server, and save upload files in special folder3. How to do it, it is apple example code, ...
分类:
其他好文 时间:
2014-08-16 18:17:40
阅读次数:
207
用save()方法始终更新不了数据,又不显示明确的错误信息,找了好久才在手册里看到一句至关重要的话:为了保证数据库的安全,避免出错更新整个数据表,如果没有任何更新条件,数据对象本身也不包含主键字段的话,save方法不会更新任何数据库的记录。因此在使用create自动更新数据时,要在表单添加一个隐藏域...
分类:
Web程序 时间:
2014-08-15 23:43:39
阅读次数:
387
前沿:这两天把报警平台放在了docker里面跑了,但是宿主机本身性能就不好,所以导致mongodb到挂了好几次了。这次搞了一台牛逼的服务器,虽说是opentstack里面的主机,但是iops很不错。你的程序放在docker里面迁移起来很是方便,像是以前的话,需要重新部署环境和静态文件。放在d..
分类:
其他好文 时间:
2014-08-15 14:48:59
阅读次数:
298