首页 > 其他
codeforces 158E. Phone Talks(dp)
题目链接:codeforces 158E题目大意:给出一些电话,有打进来的时间和持续的时间,如果人在打电话,那么新打进来的电话入队,如果人没有打电话,那么人必须立即接电话,或者选择一次放弃的机会,问这个最多有多长的连续的空闲的时间。题目分析: 定义状态dp[i][j]表示接到第i个电话在放弃j次的情况下最少需要多长时间。 转移方程很简单:dp[i][j]=min(max(dp[i?1][j]+di,...
分类:其他   时间:2015-10-05 00:48:33    收藏:0  评论:0  赞:0  阅读:312
URAL 1348 Goat in the Garden 2(点到线段的距离)
【题目链接】:click here~~ 【题目大意】:求某点到一条线段的最小距离与最大距离。 【思路】: 分析可知,最大距离一定在端点处取得。那么接下来求最小距离时,先求出垂线与线段所在直线的交点,然后判断交点在不在线段上。如果在,则最小距离为垂线段的距离,即交点到此点的距离。如果不在,则最小距离必在另一端点取得。问题转换如何判断点与线段的垂足是否在线段上,可以利用叉积方便的求出。...
分类:其他   时间:2015-10-05 00:48:23    收藏:0  评论:0  赞:0  阅读:283
A018-布局之TableLayout
TableLayout表格布局,顾名思义像表格一样进行布局。我们通常配合TableRow一起使用,TableRow代表一行,有多少个TableRow就有多少行。eg:三行三列的布局 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"...
分类:其他   时间:2015-10-05 00:48:13    收藏:0  评论:0  赞:0  阅读:221
leetcode笔记:Factorial Trailing Zeroes
给定一个整数n,返回n!(n的阶乘)数字中的后缀0的个数。...
分类:其他   时间:2015-10-05 00:47:43    收藏:0  评论:0  赞:0  阅读:202
带你玩转Visual Studio——带你发布自己的工程库
库是写好的现有的,成熟的,可以复用的代码。现实中每个程序都要依赖很多基础的底层库,不可能每个人的代码都从零开始,因此库的存在意义非同寻常。比如你经常使用的STL(Standard Template Library)也是库,有了STL你才能方便地使用std::string、std::cout这些类。 本质上来说库是一种可执行代码的二进制形式,可以被操作系统载入内存,被别的程序调用执行。C++的库有两种:静态库和动态库...
分类:其他   时间:2015-10-05 00:47:33    收藏:0  评论:0  赞:0  阅读:282
ocp-96
QUESTION NO: 96 What is the purpose of the catalog command? A. To review RMAN control file and recovery catalog metadata and ensure that it‘s correct B. To delete RMAN backup-related metadata from...
分类:其他   时间:2015-10-05 00:47:23    收藏:0  评论:0  赞:0  阅读:314
ocp-97
QUESTION NO: 97 Which of the following commands will fail? A. report schema; B. report need backup; C. report need backup days 3; D. report user; E. report obsolete; Answer: D下面的哪条命令将失败?D. repo...
分类:其他   时间:2015-10-05 00:47:13    收藏:0  评论:0  赞:0  阅读:461
ocp-98
QUESTION NO: 98 What are the two different types of database duplication? (Choose two.) A. Active B. Passive C. Online D. Backup-based 基于备份 E. Failure driven Answer: A,D两种不同类型的数据库复制是什 么? A....
分类:其他   时间:2015-10-05 00:47:03    收藏:0  评论:0  赞:0  阅读:286
ocp-99
QUESTION NO: 99 When you‘re performing a tablespace point-in-time recovery, which tablespaces will always be restored to the auxiliary instance? (Choose all that apply.)A. The SYSTEM tablespace. B....
分类:其他   时间:2015-10-05 00:46:53    收藏:0  评论:0  赞:0  阅读:252
ocp-95
QUESTION NO: 95 What is the purpose of the list expired backup command? A. Lists all backups impacted by a resetlogs command B. Lists all backups that are subject to retention criteria C. Lists al...
分类:其他   时间:2015-10-05 00:46:43    收藏:0  评论:0  赞:0  阅读:299
ocp-94
QUESTION NO: 94 What is an obsolete backup set? A. A backup set that is missing one or more backup set pieces B. A backup that has exceeded the retention criteria and is no longer needed C. A bac...
分类:其他   时间:2015-10-05 00:46:33    收藏:0  评论:0  赞:0  阅读:315
ocp-93
QUESTION NO: 93 What is the purpose of the recover command? (Choose all that apply.) A. Recover database datafiles from physical disk backup sets. B. Recover required incremental backups from physi...
分类:其他   时间:2015-10-05 00:46:23    收藏:0  评论:0  赞:0  阅读:286
ocp-92
QUESTION NO: 92 What is the purpose of the until change option of the restore command? A. It allows you to select the SCN that you want to restore to. B. It allows you to select the log sequence nu...
分类:其他   时间:2015-10-05 00:46:13    收藏:0  评论:0  赞:0  阅读:281
ocp-91
QUESTION NO: 91 While working on a data problem, Curt, Bill, Ben, Mike, and Matt introduced a vast amount of corrupted data into the database. Pablo has discovered this problem and he needs you to re...
分类:其他   时间:2015-10-05 00:46:03    收藏:0  评论:0  赞:0  阅读:230
ocp-100
QUESTION NO: 100 Which operation requires that you create an auxiliary instance manually before executing the operation? (Choose all that apply.) A. Backup-based database duplication. B. Active d...
分类:其他   时间:2015-10-05 00:45:53    收藏:0  评论:0  赞:0  阅读:238
获取git项目最后的tag
在gitlab.com上面看到的,相当好用git describe --tags `git rev-list --tags --max-count=1`比如下面的项目:/cppwizard$ git tag -n10 v1.0.0 simplify console build v1.1.0 use file.lsp in same folder v1.2.0 ...
分类:其他   时间:2015-10-05 00:45:34    收藏:0  评论:0  赞:0  阅读:583
一个简单的loading动画,version 1.0
一个简单的loading动画:如图点我查看
分类:其他   时间:2015-10-05 00:44:43    收藏:0  评论:0  赞:0  阅读:168
(中等) CF 576D Flights for Regular Customers (#319 Div1 D题),矩阵快速幂。
In the country there are exactlyncities numbered with positive integers from1ton. In each city there is an airport is located.Also, there is the onl.....
分类:其他   时间:2015-10-05 00:44:23    收藏:0  评论:0  赞:0  阅读:503
contenteditable
http://www.w3school.com.cn/tags/att_global_contenteditable.asp做编辑器经常用这个属性 使得整个编辑区域所见所得http://www.cnblogs.com/cskk/archive/2013/03/30/divs.html这两天在研究编辑...
分类:其他   时间:2015-10-05 00:44:13    收藏:0  评论:0  赞:0  阅读:291
最小生成树
最小生成树的克鲁斯卡做法
分类:其他   时间:2015-10-05 00:43:53    收藏:0  评论:0  赞:0  阅读:332
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!