自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 HDU6178

#include using namespace std; typedef long long ll; namespace fastIO { #define BUF_SIZE 500000 //fread -> read bool IOerror = 0; inline char nc() { static char buf[BUF_SIZE],

2017-08-25 21:08:04 221

原创 HDU6172

套了杜教的板子。能力够了在手推 #include using namespace std; #define rep(i,a,n) for (int i=a;i<n;i++) #define per(i,a,n) for (int i=n-1;i>=a;i--) #define pb push_back #define mp make_pair #define all(x) (x).begin

2017-08-25 17:36:20 264

原创 HDU6180

排序完后,贪心的选择当前开始时间在前面结束时间离的最近的。 #include using namespace std; typedef long long ll; namespace fastIO { #define BUF_SIZE 1000000 //fread -> read bool IOerror = 0; inline char nc() {

2017-08-25 17:35:12 308 1

原创 Codeforces845C

扫描线的简单运用。 #include using namespace std; typedef long long ll; typedef pair P; const int N = 2E5 + 7; vector a; int n; int main() { std::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);

2017-08-23 22:11:57 195

原创 Codeforces 839B

Daenerys Targaryen has an army consisting of k groups of soldiers, the i-th group contains ai soldiers. She wants to bring her army to the other side of the sea to get the Iron Throne. She has rec

2017-08-16 01:59:23 240

原创 HDU6103

多校的一题竟然没做出来。 方法是枚举对称中心,然后向两边尺取法. #include using namespace std; int len, m, ans; char s[5007]; void judge(int x, int y) { int dis, l, r; dis = l = r = 0; while(y + r = 0) { if

2017-08-11 17:51:20 315

原创 UVA116

很大的一个错误。正向推只能保证前者最小,逆向才能保证字典序最小。附上WA的代码 #include using namespace std; const int N = 12, M = 102; int e[N][M], n, m; int dp[N][M], pre[N][M]; void ptr() { for(int i = 1;i <= n;i ++) { f

2017-08-02 18:21:14 164

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除