自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 POJ 3754 模拟Modbus协议 中文

2017-01-31 20:44:41 241

原创 POJ 3753 根据关键字进行字符串拷贝 G++

#include #include #include using namespace std;//谢谢博友程序 int main(){ vector jg; while(1) { string s; cin>>s; if(cin.eof()==1) { break; } if(s=="END") { continue; } vec

2017-01-31 20:40:38 325

原创 POJ 3752 字母旋转游戏 G++

#include #include using namespace std;int main(){ int NUM1; int NUM2; cin>>NUM1>>NUM2; char a[NUM1][NUM2]; memset(a,0,sizeof(a)); int js=0;//计数 int fx=0;//方向 int i=0; int j=0; char c='

2017-01-31 20:38:29 407

原创 POJ 3750 小孩报数问题 G++

#include #include #include using namespace std;int main(){ int NUM; cin>>NUM; vector a; for(int i=0;i<NUM;i++) { string t; cin>>t; a.push_back(t); } char c; int ks; int shu; cin>>

2017-01-31 20:36:36 211

转载 POJ 3225 区间 中文

2017-01-31 20:34:15 196

转载 POJ 3223 足球赛 中文

2017-01-31 20:30:02 263

转载 POJ 3222 边配对 中文

2017-01-31 20:28:14 283

转载 POJ 3221 钻石游戏 中文

2017-01-31 20:26:15 340

转载 POJ 3220 上下文无关语言 中文

2017-01-31 20:22:47 198

转载 POJ 3218 文本对齐 中文

2017-01-31 20:05:23 264

原创 POJ 1835 宇航员 G++ 打表 背

#include <iostream>#include <cstdio>using namespace std;//看博友分析 抄博友程序 模拟 其他方法未实现 打表 背 int face;int head;int x,y,z;void fun(int step){ if(face==0) { x=x+step; }else if(face==1) { y=y+step; }else ...

2017-01-31 20:00:34 326

转载 POJ 1834 线段处理 中文

2017-01-31 19:58:03 308

原创 POJ 1833 排列 G++ 用 copy 输出

https://www.cnblogs.com/coolwind-sea/archive/2012/04/17/2454313.html#include <iostream>#include <algorithm>#include <iterator>#include <stdio.h>using namespace st...

2017-01-31 19:56:14 167

转载 POJ 1832 连环锁 中文

2017-01-31 19:54:52 289

原创 POJ 1831 不定方程组 G++ dfs 没掌握

#include <iostream>#include <cstdio>#include <cmath>using namespace std;//抄博友程序 dfs 没掌握 int n;int m;int ans[80000];bool dfs(int k,int s){ if(s>n) return false; if(s==n) { m=k; return true; } for(int ...

2017-01-31 19:53:02 929

转载 POJ 1830 开关问题 中文

2017-01-31 19:49:34 151

转载 POJ 1829 火力防御网 中文

2017-01-31 19:47:29 271

原创 POJ 1664 放苹果 G++

#include <iostream>using namespace std;//整数划分数 博友的分析太好打算背 //设f(m,n) 为m个苹果,n个盘子的放法数目,则先对n作讨论,//当n>m:必定有n-m个盘子永远空着,去掉它们对摆放苹果方法数目不产生影响。即if(n>m) f(m,n) = f(m,m)  //当n<=m:不同的放法可以分成...

2017-01-31 19:45:08 175

转载 POJ 1282 庆典的日期 中文

2017-01-30 14:17:56 474

转载 POJ 1193 内存分配 中文

2017-01-30 14:15:32 744

原创 POJ 1192 最优连通子集 G++ dfs 动态规划 没掌握

#include <iostream>#include <cstdio>#include <cmath>#include <vector>#include <cstring>#include <cstdlib>using namespace std;//英语 抄博友程序 dfs 动态规划 没掌握 int x[1008];int y[1008];int z[1008];...

2017-01-30 14:12:04 214

原创 POJ 1191 棋盘分割 G++ 均方差 dp 没掌握

#include <iostream>#include <cstdio>#include <cstring> #include <iomanip>#include <cmath> using namespace std;//英语 看博友分析 抄博友程序 均方差 dp 没掌握int da[10][10];int sum[10][10];int dp[20][...

2017-01-30 14:09:26 267

转载 POJ 1190 生日蛋糕 中文

2017-01-30 14:06:36 206

原创 POJ 1189 钉子和小球 G++ 动态规划 没掌握

#include <iostream>#include <cstdio>#include <string>#include <cstring>using namespace std;//英语 看博友分析 抄博友代码 动态规划 没掌握 int p[60][60];long long dp[60][60];long long gcd(long long a, long long b){...

2017-01-30 14:04:28 266

原创 POJ 1187 陨石的秘密 G++ 巧妙 dfs dp 真没掌握

#include <iostream>#include <cstdio>#include <cstring>using namespace std;//看博友分析 抄博友程序 巧妙 dfs dp 真没掌握 int mod=11380;int l1,l2,l3,d;int dp[12][12][12][34];//抄博友程序 dp[a][b][c][d]表示{}[]()分别有a b c个形成最大嵌套...

2017-01-30 14:01:54 684

原创 POJ 1186 方程的解数 G++ dfs 快速幂 哈希表 背

#include <iostream>#include <cstdio> #include <cstring>#define MAX 4444444using namespace std;//英语 看博友分析 抄博友程序 dfs 快速幂 哈希表 背 int k[200];int p[200];struct hash{ int val; int c;}hash_t[MAX];/...

2017-01-30 13:58:52 280

原创 POJ 1185 炮兵阵地 G++ 状态压缩dp 没掌握

#include <iostream>#include <cstdio>#include <algorithm>using namespace std;//英语 看博友好分析 抄博友程序 状态压缩dp 没掌握 int da[200];int st[200];//状态 int sum[200];int dp[108][80][80]; int cal(int x){ int js=0; whil...

2017-01-30 13:55:49 260

转载 POJ 1184 聪明的打字员 中文

2017-01-30 13:53:18 630

原创 POJ 1183 反正切函数的应用 G++

#include <iostream>#include <algorithm>using namespace std;//看博友分析 巧妙 数学 //m*n=a^2+1int main(){ long long a; cin>>a; long long jg=1000000000;//范围给小了 for(long lo...

2017-01-30 13:50:59 225

原创 POJ 1182 食物链 G++ 并查集 背

#include <iostream>#include <cstdio> using namespace std;//挑战程序设计竞赛 并查集 背//0 n-1 +nint fa[160000];int find(int x){ if(x==fa[x]) { return x; }else { return fa[x]=find(fa...

2017-01-30 13:47:14 187

转载 POJ 1091 跳蚤 中文

2017-01-30 13:08:40 259

原创 POJ 1088 滑雪 G++

#include <iostream>#include <vector>#include <algorithm>using namespace std;//没掌握 郭老师分析 int L[100][100];int da[100][100];int dx[4]={1,-1,0,0};int dy[4]={0,0,1,-1};struc...

2017-01-30 13:06:11 184

原创 POJ 1067 取石子游戏 中文

2 1 玩家1输n 1 玩家1赢n 2 玩家1赢 n>=2n n 玩家1赢n 0 玩家1赢n n-1 玩家1赢5 3 玩家1输n 3 玩家1赢 n>56 4 玩家1赢7 4 玩家1输 n 4 玩家1赢 n>7n 5 玩家1赢 n>37 6 玩家1赢8 6 玩家1赢 9 6

2017-01-30 13:03:38 289

转载 POJ 1062 昂贵的聘礼 中文

2017-01-30 13:00:00 207

原创 POJ 1061 青蛙的约会 G++

#include <iostream>#include <cmath>#include <cstdio>using namespace std;//抄博友程序 谢谢博友程序int main(){ unsigned long x,y,m,n,L;//抄博友 scanf("%ld %ld %ld %ld %ld",&x,&y,...

2017-01-30 12:55:12 246

转载 POJ 1011 木棒 中文

2017-01-30 12:52:49 332

空空如也

空空如也

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

TA关注的人

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