自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 虚拟机安装brat

最近在做毕业设计,要用到brat,于是要开始学习linux系统。 尝试了好多天,终于成功安装好啦! 先是安装了centos版本的,结果因为firefox老是闪退,于是又重新弄了一次虚拟机,更改了一下配置之后,brat装好了,firefox也成功安装好了,打开brat却一直在加载。才发现如果运行brat的话,要用chrome比较好。然后开始安装chrome,发现它对centos不是很友好,弄来弄...

2018-12-28 14:05:47 1282 5

原创 HDU2955

#include<iostream> #include<set> #include<string> #include<algorithm> #include<iomanip> using namespace std; int const MAX = 10005; int main() { int n; cin >> n;...

2018-04-05 09:56:18 295

原创 hdu2546

#include<iostream> #include<set> #include<string> #include<algorithm> #include<iomanip> using namespace std; int const MAX = 1005; int main() { int n, m; int price[MAX]...

2018-04-04 18:42:27 238

原创 po3624j

#include<iostream> #include<set> #include<string> #include<algorithm> #include<iomanip> using namespace std; int const MAX = 3403; int main() { int n, m; int w[MAX], d[...

2018-04-04 18:03:19 245

原创 hdu2602

开始学背包问题~最基本的01背包终于看懂了#include<iostream> #include<set> #include<string> #include<algorithm> #include<iomanip> using namespace std; int const MAX = 1005; int main() { int ...

2018-04-03 16:52:29 746

转载 mysql ODBC 在64位下提示找不到odbc驱动问题

在64位机器上,如果你想要连接32位mysql ,一般会安装mysql connector/ODBC 64位,并在配置ODBC数据源测试中连接正常,但在程序连接,如ASP、asp.net、VB、Delphi 等软件访问数据库时,却提示找不到ODBC驱动。       这个问题网上找了很多资料,很多开发者甚至放弃使用mysql数据库,或者用其它开发语言如php代替。    本人尝试

2017-11-06 16:46:31 5676 1

原创 zoj1516

实在是。。服了自己 光是记得输入了 忘记输入都是0的时候结束和读到文件末尾是不一样的 于是乎 改来改去 总算是成功了 也总算是能够证明我真的是懂得二部图的最大匹配的 只是一开始还是SF让我有点郁闷。。 应该是里面有些参数设的不规范 也总算是AC了 #include #include using namespace std; #define MAXN 105 int n,

2017-06-16 21:52:41 630

原创 zoj1083

思考了很久这道题目 还是没想到该如何下手 看到了这位大佬的代码 http://www.cnblogs.com/Inkblots/p/5351764.html 迷迷糊糊看个大概 才明白原来对于每张图的边框可以这样获得 然后就是拓扑排序 对于多解的情况要用到回溯法 然而还是不是很熟练 还是WA 先贴上来。。 #include #include using namespace st

2017-06-11 16:45:37 755

原创 zoj1204

也是这个星期写的了 然而zoj识别不聊to_string 只好先贴上来 #include #include #include using namespace std; int num[30],a,b,f; int all; int add(int x, int s, int n, string str); int main() { cin >> a; for (int i = 0; i

2017-06-10 11:55:55 608

原创 zoj1221

这道题目之前听老师讲感觉晕晕乎乎的 昨天看懂了弗洛伊德算法之后 发现这道题原来是这么基础。。 但是第一次只提交了2次就A了 还只是因为EOF的设置问题 开心!! #include using namespace std; int map[21][21]; void test(); int min(int a, int b); int main() { int n,i,a,b

2017-06-10 11:02:04 674

原创 zoj1942

一开始连题目都没看都就乱写 以为是要输出最短路径 然后还理解了很久 所要输出的距离 所走路径的最小边 当有直达的边时,如果比其他路线的最大边要小,那就是这个直达边 如果比其他路线的最大边要大,那就输出其他路线的最大边的最小边 说起来好像很绕。。 自己的理解能力还是太差了 #include #include #include using namespace std; double

2017-06-09 23:08:19 1064

原创 zoj1654

听老师讲完,还是写了好几天 程序效率太差了 到现在还是只会用for,if 说是Segmentation Fault 也可以想象 先贴上来#include #include using namespace std; int h[50][50], z[50][50],pre[50]; char map[50][50]; int nei[50][50],x,y; //从1开始的 bool v

2017-06-09 13:56:35 359

原创 zoj1203

zoj网站上不去了 写了代码也还没来得及测试 隐约觉得应该会有问题 不过目前测试的数据还是对的。。。 #include #include #include using namespace std; const int N = 100; int n,v[N+2],x; double s,r[N+2][2]; struct dis { double n1; double n2; dou

2017-05-26 23:43:12 303

原创 zoj1610

本来是以十作为例子,然后发现改成八千就全都错了 看来是整个思路都有问题。。 先贴上来 #include #include #include #include using namespace std; const int m = 8000; struct xtree { int a; int b; int c; }t[m*3]; int color[m]; void refres

2017-04-28 22:18:39 342

原创 zoj2833

这个并查集的题目写的倒是挺快的 然而说我超时。。 #include #include using namespace std; int main() { int N[100001],X[100001], i = 0, n = 0, m = 0, a = 0, b = 0, a2 = 0, b2 = 0, t = 0,x=1,y=0; char ch; while ((cin >> n >

2017-04-12 23:34:24 631

原创 zoj1002

老师上课讲了一次,然后自己觉得自己好像懂了 结果代码看似差不多地写出来了,然而,就是一个else,就差了十万八千里啊!!! #include using namespace std; int n; int mm; char ch[100]; int chose(int x); void DFS(int x, int count); int main() { int i = 0; whi

2017-04-10 20:59:15 599

原创 zoj2812

#include #include #include using namespace std; int main() {  char str[256];  int a[100], i = 0, j = 0, x = 0, l=0;    while (gets_s(str) && str[0] != '#')  {   l = strlen(str);   for (i =

2017-03-11 22:34:23 266

原创 zoj1383

#include using namespace std; int main() { int d = 0, i = 0, n = 0, m = 0; cin >> d; for (i = 0; i < d; i++) { cin >> n; while (n != 0) { if (n % 2) { if (n == 1) cout << m <<

2017-03-11 19:08:58 326

转载 poj2503

开个博客来立flag 认认真真的打ACM 虽然感觉很后悔,应该早一点开始的 不过现在开始干活,应该也为时不晚吧 ACM就像是一道大关卡 每次不管是别人觉得多简单的题目 我都很难AC 难过 直到现在 这个还是runtime error #include #include #include #include using namespace std; ostream&ope

2017-03-11 18:26:52 279

空空如也

空空如也

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

TA关注的人

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