自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

beihai2013

生命是一个巨大的游乐场,或者空虚无比。

  • 博客(8)
  • 收藏
  • 关注

原创 USACO Section 1.5

USACO Section 1.5 Number Triangles/* ID: beihai2013 TASK: numtri LANG: C++ */ /*简单DP*/ #include <bits/stdc++.h> using namespace std; const int MAXN = 1000 + 5; int g[MAXN][MAXN], n; int ma

2016-05-31 17:32:15 227

原创 USACO Section 1.4

USACO Section 1.4 Arithmetric Progression/* ID: beihai2013 TASK: ariprog LANG: C++ */ /* 找出满足(a+i*b)(i<n,i>=0)的所有a,b,其中a+i*b的值在集合S{P^2 + Q^2}中 暴力循环做就可以了,主要是题意比较难理解 */ #include <bit

2016-05-31 12:08:24 318

原创 USACO Section 1.3

USACO Section 1.3Mixing Milk /* ID: beihai2013 TASK:milk LANG: C++ */ /*贪心选择消费最少的农人*/ #include <bits/stdc++.h> using namespace std; const int MAXN = 5000 + 5; struct Node { int u, v; }n

2016-05-31 08:45:22 310

原创 Codeforces Round 354 div2 676ABCDE

Codeforces Round 354 div2 通过数: 4 A:#include <bits/stdc++.h> using namespace std; const int MAXN = 100 + 5; int a[MAXN], n; int main() { while(scanf("%d", &n) != EOF) { for(int i = 1 ; i <

2016-05-26 16:58:02 302

原创 Codeforces Round 353 div2 675ABCDE

Codeforces Round 353 div2 通过数: 2 A:#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; while(scanf("%d%d%d", &a, &c, &b) != EOF) { if((c - a) < 0 && b > 0) printf(

2016-05-26 10:59:25 268

原创 Topcoder SRM 687 div2

Topcoder SRM 687 div2 通过数:2 250:#include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include

2016-05-11 09:37:26 691

原创 Topcoder SRM 688 div2

Topcoder SRM 688 div2 250:#include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numer

2016-05-10 11:38:23 858

原创 Codeforces Round 350 div2 670ABCDEF

Codeforces Round 350 div2 通过数:5 都是简单题,最后一题由于中间有点事空了一段时间,赛后没看题解只看数据过了。 A: 简单题。刚开始想用暴力写的,尽量避免分类讨论。 然后发现暴力还不如分类讨论#include <bits/stdc++.h> using namespace std; int main() { int n; while(scanf(

2016-05-06 18:28:32 580

空空如也

空空如也

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

TA关注的人

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