自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

寻死的兔子

窄门通向永生

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

原创 sdut 2624 Contest Print Server (第四届省赛)

#include#include#includeusing namespace std;int main(){ int t; scanf("%d",&t); while(t--){ int n,s,x,y,mod; char name[20],nouse[20]; int page,ppage; int counter=0; scanf("%d%d%d%d%d",

2014-05-09 21:32:51 529

原创 NYOJ15 括号匹配(二)

题目链接 http://acm.nyist.net/JudgeOnline/problem.php?pid=15#include#include#includeusing namespace std;int dp[105][105];char a[105];int main(){ int n; scanf("%d",&n); while(n--){ scanf("%s",a)

2014-05-04 18:44:49 492

原创 poj 1067 取石子游戏

裸威佐夫博弈#include#include#includeusing namespace std;const double key=(sqrt(5.0)+1.0)/2;int main(){ int a,b,k; while(scanf("%d%d",&a,&b)==2){ if(a>b){ a^=b;b^=a;a^=b; } k=b-a; if(floor(

2014-05-04 15:19:49 466

原创 SDACM 五一联赛 3 G - L

#include#include#include#include#define inf 0x3f3f3f3fusing namespace std;int ma[1010][1010];int cost[1010],a[1010]; int n,m;void init(){ for(int i=1;i<=n;i++){ for(int j=1;j<i;j++) ma[

2014-05-03 23:55:59 821

原创 CF A. Dynasty Puzzles

这题像背包,每组名字的长度是物品的价值,背包的rong

2014-05-03 18:41:52 757

原创 sdut2161 Simple Game(山东第二届省赛)

Nim-K or Moore's Nim ?类似

2014-05-02 23:39:36 697

原创 sdut2408 Pick apples(山东第三届省赛)

#include#include#includeusing namespace std;int dp[1000005];int gcd(int a,int b){ if(b==0) return a; return gcd(b,a%b);}int lcm(int a,int b){ return a/gcd(a,b)*b;}int main(){ int

2014-05-02 23:30:03 465

原创 sdut2415 Chess (山东第三届省赛)

#include#include#include#include#define N 100005using namespace std;struct node{ int x,y; int p; int pos;}x[N],y[N],x_y[N],xy[N],xxy[N],xyy[N],x_yy[N],xx_y[N];int hited[N];bool cmpxxy(node

2014-05-02 23:24:50 716

空空如也

空空如也

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

TA关注的人

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