993 Product of digits
For a given non-negative integer number N, ?nd the minimal natural Q such that the product of all
digits of Q is equal N.
Input
The ?rst line of input contains one po...
分类:
其他好文 时间:
2015-04-02 09:11:13
阅读次数:
219
最近在学习动态规划,那这题当然是动态规划了(不好意思剧透了)......刚开始做动态规划,想详细地分析一下,以便理解更深刻! 首先读题,题目意思是要求从两个集合s1,s2选出N个数对,他们的距离(差的绝对值)的和最小;因为s1集合小于s2集合,所以就是从s1中选出全部n个数字,从s2中也选出n...
分类:
其他好文 时间:
2015-04-01 00:18:28
阅读次数:
122
Description
A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal lengt...
分类:
其他好文 时间:
2015-03-30 16:36:02
阅读次数:
117
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=450You are to write a program to find a circle which covers a set of points and has th...
分类:
其他好文 时间:
2015-03-28 13:00:08
阅读次数:
202
(一)升级整个系统后重启,然后加入CentOS官方Xen源(Xen4CentOS6)并安装Xen内核及相关工具。需要注意的是,采用CentOS-6.5-x86_64-minimal.iso最小化安装的系统没有包括Perl,Xen工具需要Perl的支持,所以需要安装perl先:#关闭selinux#vi/etc/selinux/config#把其中的SELINUX..
分类:
其他好文 时间:
2015-03-20 14:37:50
阅读次数:
116
1. 目前有四种主题theme_gray(), theme_bw() , theme_minimal(),theme_classic()2. X轴设置刻度scale_x_continuous(limits=c(1950,2000),breaks=seq(1950,2000,5))3. Bar & L...
分类:
其他好文 时间:
2015-03-19 14:46:23
阅读次数:
172
今天下载了CentOS-6.4-x86_64-minimal的iso镜像文件,立马打开虚拟机,安装试用,6.4版本在文本模式下无法自定义分区,在图形模式下可以,目前没有找到好的办法,安装完后,发现创建虚拟机时没有添加网卡,没有关系,装完后关闭虚拟机,编辑虚拟机——添加网络适配器,就有网卡..
分类:
其他好文 时间:
2015-03-17 16:04:14
阅读次数:
115
挂载点/boot200M系统启动类型/Swap2g虚拟内存剩余都分grub:引导系统程序minimal+自定义vim/etc/sysconfig/network-script/ifcfg-eth0网络配置文件设置ipONBOOT=yesIPADDR=192.168.1.111NETMASK=255.255.255.0gateway=192.168.1.1dns1=0.0.0.0route-n查网关==vi状态下ctrl+z暂..
分类:
系统相关 时间:
2015-03-14 20:09:42
阅读次数:
289
本教程用到的工具:VM10或11版系统镜像文件:install-amd64-minimal-20141127stage3-amd64-20141127.tarHFS网络文件传输工具好开始教程:# lspci 查看硬件设备# ifconfig 查看网卡信息# ping www.baidu.com .....
分类:
其他好文 时间:
2015-03-13 16:19:33
阅读次数:
304
在安装CentOS 6.x的过程中会出现以下界面:这些选项有什么区别呢?转载一位网友的描述:Desktop:基本的桌面系统,包括常用的桌面软件,如文档查看工具Minimal Desktop:基本的桌面系统,包含的软件更少Minimal:基本的系统,不包含任何可选的软件包Basic Server:安装...
分类:
其他好文 时间:
2015-03-12 14:41:53
阅读次数:
462