/**
?*?@brief?Codeforces?Round?#279?(Div.?2)?b
?*?@file?b.cpp
?*?@author?mianma
?*?@created?2014/11/27?15:29
?*?@edited??2014/11/27?20:40
?*?@type?
?*?@note
?*/
#inclu...
分类:
其他好文 时间:
2014-11-27 22:15:41
阅读次数:
326
查看表空间已经使用的百分比select a.tablespace_name,a.bytes/1024/1024 "Sum MB",(a.bytes-b.bytes)/1024/1024 "used MB",b.bytes/1024/1024 "free MB",round(((a.bytes-b.b...
分类:
数据库 时间:
2014-11-27 17:52:07
阅读次数:
221
这篇文章将简述使用CSS3的border-radius来画圆、半圆和四分之一圆,并如何利用它们。如何使用border-radius属性下面是border-radius属性最基本的使用方法。1234567.round { border-radius: 5px; /* 所有角都使用半径为5px的圆角,此...
分类:
Web程序 时间:
2014-11-27 12:22:19
阅读次数:
436
1001 Primes Problem打个10^4的素数表,枚举前两个搞一下就好了。#include#include#include#include#include#include#include#includeusing namespace std;const int n = 10000;int ...
分类:
其他好文 时间:
2014-11-26 22:15:06
阅读次数:
262
/**
?*?@brief?Codeforces?Round?#279?(Div.?2)?a
?*?@file?a.cpp
?*?@author?面码
?*?@created?2014/11/26?17:05
?*?@edited??2014/11/26?17:05
?*?@type?
?*
?*/
#include?<cstd...
分类:
其他好文 时间:
2014-11-26 19:24:18
阅读次数:
167
SQL 函数 聚合函数(针对数字列):AVG:求平均分COINT: 计算个数MAX: 求最大值MIN: 求最小值SUM: 求和 数学函数():ABS: 绝对值CEILING: 上限取整floor: 取整pi: 圆周率round: 第一个参数是要进行四舍五入的数,第二个参数是要四舍五入到小数点之后的几...
分类:
数据库 时间:
2014-11-26 13:43:07
阅读次数:
186
/**
?*?@brief?Codeforces?Round?#278?(Div.?2)?d
?*?@file?d.c
?*?@author?面码
?*?@created?2014/11/26?10:07
?*?@edited??2014/11/26?10:07
?*?@type?dp?
?*?@note
?*?????...
分类:
其他好文 时间:
2014-11-26 11:43:47
阅读次数:
149
题目链接:
huangjing
题意:告诉一个无向无环图,然后求在联通的路上的lis。
思路:枚举起点求lis 复杂度是n^2logn,貌似这复杂度对时间有点玄,估计是数据有点弱。。。
首先枚举起点,然后求lis,主要是用dfs求的,要用到回溯的思想,我觉得是只要更新了,就要保存那个操作,然后一旦这一次的搜索完成,那么就要立即回复g数组的值,因为有很多不同的路线,所以一条路走完...
分类:
其他好文 时间:
2014-11-25 23:42:48
阅读次数:
203
看来最不擅长的就是贪心,这种方法都想不起来是不是专题刷多了? 也没见得专题做得有多好啊~
题目大意:
给出一个字符串,包括三种字符'('、')'、'?',每个问号可以变成其他两种符号,但是需要费用。
要求组成一个符合条件的字符串,使括号匹配,求最小费用。
解题思路:
贪心(发现他比动态规划都难)。
不需要在意哪个括号和哪个括号匹配,只需要注意数量就行...
分类:
其他好文 时间:
2014-11-25 18:36:00
阅读次数:
177
#include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll;using namespace std;/...
分类:
其他好文 时间:
2014-11-25 15:48:16
阅读次数:
180