经典题refhttp://blog.csdn.net/u011095253/article/details/9158473public class Solution { public ArrayList solveNQueens(int n) { ArrayList res = ...
                            
                            
                                分类:
其他好文   时间:
2015-04-22 13:24:36   
                                阅读次数:
114
                             
                    
                        
                            
                            
                                记录,方便查阅。配置controller节点的配置数据库建立:mysql -p123456 -e "CREATE DATABASE nova;GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'192.168.23.11' IDENTIFIED BY 'nova';G...
                            
                            
                                分类:
其他好文   时间:
2015-04-19 14:33:50   
                                阅读次数:
529
                             
                    
                        
                            
                            
                                Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.问题是求N皇后的解,可以采用回溯法解决。 1 clas...
                            
                            
                                分类:
其他好文   时间:
2015-04-18 17:32:34   
                                阅读次数:
128
                             
                    
                        
                            
                            
                                #-*-encoding:utf-8-*-
#
#Copyright2012RedHat,Inc
#
#Author:EoghanGlynn<eglynn@redhat.com>
#
#LicensedundertheApacheLicense,Version2.0(the"License");youmay
#notusethisfileexceptincompliancewiththeLicense.Youmayobtain
#acopyoftheLicenseat
#
#http://www...
                            
                            
                                分类:
Web程序   时间:
2015-04-17 15:58:19   
                                阅读次数:
200
                             
                    
                        
                            
                            
                                用三角形面积什么的算算点到直线的距离之类……其实相切的情况是可行的……剩下的就跟某SDOI2015一样了。#include#include#include#include#includeusing namespace std;#define N 201#define EPS 0.000001#def...
                            
                            
                                分类:
Web程序   时间:
2015-04-16 23:22:20   
                                阅读次数:
200
                             
                    
                        
                            
                            
                                翻译自:http://www.pixelbeat.org/docs/openstack_libvirt_images/The main stages of a Virtual Machine disk image as it transfers through OpenStack to be boo...
                            
                            
                                分类:
其他好文   时间:
2015-04-15 09:27:14   
                                阅读次数:
177
                             
                    
                        
                            
                            
                                在上一章中, 通过跟踪nova boot命令, 已经完成了Instance创建参数的解析及身份认证的过程。这一章中继续完成CLI部分的代码跟踪,看看RESTful的请求是如何发出去的。如果阅读过上一章的内容,就可知道nova boot所对应的最终的执行函数是do_boot。这段代码不长,内容也很简单,具体看注释。do_bootdef do_boot(cs, args):
    """Boot a...
                            
                            
                                分类:
其他好文   时间:
2015-04-14 16:51:50   
                                阅读次数:
839
                             
                    
                        
                            
                            
                                题目链接==》 http://www.bnuoj.com/v3/problem_show.php?pid=4299题意:一个X*Y棋盘上放了N个queens,再放一个queen,有几个空格可以放,前提是和已经在棋盘上的queen不同行不同列不同斜线思路:每个点所在四条直线上,不能再放queen,所以...
                            
                            
                                分类:
其他好文   时间:
2015-04-14 09:42:26   
                                阅读次数:
191
                             
                    
                        
                            
                            
                                Nova 虚机获取固定IP (Fixed IP)主要分为两个步骤:(1)在创建虚机过程中,Neutron 随机生成 MAC 和 从配置数据中分配一个固定IP 地址,并保存到 Dnsmasq 的 hosts 文件中,让 Dnsmasq 做好准备。(2)虚机在启动时向 Dnsmasq 获取 IP 地址本...
                            
                            
                                分类:
其他好文   时间:
2015-04-13 09:21:29   
                                阅读次数:
291
                             
                    
                        
                            
                            
                                https://leetcode.com/problems/n-queens-ii/Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of dist...
                            
                            
                                分类:
其他好文   时间:
2015-04-11 22:21:58   
                                阅读次数:
164