迁移计算节点所有云主机 高德置地 王锦雄 使用host-evacuate-live热迁移主机 查看主机目前的云主机情况 nova hypervisor-servers cloud1 执行host-evacuate-live将宿主机cloud1的全部云主机迁移到cloud2 nova host-eva ...
分类:
其他好文 时间:
2020-01-24 12:02:15
阅读次数:
110
题源:https://vjudge.net/problem/UVA-11475 很标准的回文串问题(为什么总是在一些奇奇怪怪的地方写错。。) #include <iostream> #include <stdio.h> #include <cstring> #define LCOAL #define ...
分类:
编程语言 时间:
2020-01-23 21:06:39
阅读次数:
77
题目链接:https://vjudge.net/problem/UVA-11300 这道题的思路太神了,但很难想到是贪心。 用M表示每个人最终拥有的金币数。 首先假设有四个人。假设1号给2号3枚,2号又给1号5枚,那么实际上1号并没有给2号,而2号给了1号2枚。这样设$x_2$表示2号给了1号$x_ ...
分类:
其他好文 时间:
2020-01-23 19:45:44
阅读次数:
67
该课题来源于UVA中Searching the Web的题目:https://vjudge.net/problem/UVA-1597 按照题目的说法,我对按照特定格式输入的文章中的词语合成字典,以满足后期的快速查找。 针对于字典的合成途径,我利用了STL中的map与set的嵌套形成了一种特定的数据结 ...
分类:
编程语言 时间:
2020-01-23 15:31:40
阅读次数:
113
题目链接:https://vjudge.net/problem/UVA-11729 一道比较显然的贪心。 我们可以发现如果我们让$a_j$最大的尽可能地往前来交待,那么时间重合地会更多。 一个很明显的贪心策略:按照$j$从大到小排序,记录每一次的$s$(交代的时间)和$s+a_j$(结束的时间),用 ...
分类:
其他好文 时间:
2020-01-22 23:39:12
阅读次数:
72
Oh, New Year. The time to gather all your friends and reflect on the heartwarming events of the past year... nn friends live in a city which can be re ...
分类:
其他好文 时间:
2020-01-22 13:02:12
阅读次数:
59
前言 emmmm python简单图片抓取 1 import requests 2 import threading 3 import queue 4 from subprocess import Popen,PIPE 5 from bs4 import BeautifulSoup as bs 6 ...
分类:
编程语言 时间:
2020-01-22 11:19:26
阅读次数:
88
```cpp #include #include #include #include using namespace std; setp[27]; int b[9],vis[9],ans[9],s[9],n=0,small=10,cha; //n::iterator it=p[s[cur]].beg... ...
分类:
其他好文 时间:
2020-01-21 10:44:55
阅读次数:
73
Final Project - IA626SummaryThe final project for IA-626 will be an open ended project including the topics below. The projectwill be primarily graded ...
分类:
其他好文 时间:
2020-01-20 20:54:05
阅读次数:
80
今天学习了Android Jetpack的架构,学习的非常浅显,只了解了一些基本内容,但可以看出这些基本内容的区别。 手动存取:这是最基础的架构,也是我学习之前一直用的架构,但是这个架构代码不好维护,而且数据得不到保护。先看个例子 ,这是初始画面,可以进行+1和-1操作,但是如果我们旋转屏幕,画面就 ...
分类:
移动开发 时间:
2020-01-20 20:37:37
阅读次数:
101