- 博客(19)
- 收藏
- 关注
原创 虚拟机安装brat
最近在做毕业设计,要用到brat,于是要开始学习linux系统。尝试了好多天,终于成功安装好啦!先是安装了centos版本的,结果因为firefox老是闪退,于是又重新弄了一次虚拟机,更改了一下配置之后,brat装好了,firefox也成功安装好了,打开brat却一直在加载。才发现如果运行brat的话,要用chrome比较好。然后开始安装chrome,发现它对centos不是很友好,弄来弄...
2018-12-28 14:05:47
1168
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
240
原创 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
192
原创 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
198
原创 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
695
转载 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
5488
1
原创 zoj1516
实在是。。服了自己光是记得输入了忘记输入都是0的时候结束和读到文件末尾是不一样的于是乎改来改去总算是成功了也总算是能够证明我真的是懂得二部图的最大匹配的只是一开始还是SF让我有点郁闷。。应该是里面有些参数设的不规范也总算是AC了#include#includeusing namespace std;#define MAXN 105int n,
2017-06-16 21:52:41
568
原创 zoj1083
思考了很久这道题目还是没想到该如何下手看到了这位大佬的代码http://www.cnblogs.com/Inkblots/p/5351764.html迷迷糊糊看个大概才明白原来对于每张图的边框可以这样获得然后就是拓扑排序对于多解的情况要用到回溯法然而还是不是很熟练还是WA先贴上来。。#include#includeusing namespace st
2017-06-11 16:45:37
708
原创 zoj1204
也是这个星期写的了然而zoj识别不聊to_string只好先贴上来#include#include#includeusing 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
540
原创 zoj1221
这道题目之前听老师讲感觉晕晕乎乎的昨天看懂了弗洛伊德算法之后发现这道题原来是这么基础。。但是第一次只提交了2次就A了还只是因为EOF的设置问题开心!!#includeusing 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
552
原创 zoj1942
一开始连题目都没看都就乱写以为是要输出最短路径然后还理解了很久所要输出的距离所走路径的最小边当有直达的边时,如果比其他路线的最大边要小,那就是这个直达边如果比其他路线的最大边要大,那就输出其他路线的最大边的最小边说起来好像很绕。。自己的理解能力还是太差了#include#include#includeusing namespace std;double
2017-06-09 23:08:19
999
原创 zoj1654
听老师讲完,还是写了好几天程序效率太差了到现在还是只会用for,if说是Segmentation Fault也可以想象先贴上来#include#includeusing 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
301
原创 zoj1203
zoj网站上不去了写了代码也还没来得及测试隐约觉得应该会有问题不过目前测试的数据还是对的。。。#include#include#includeusing 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
250
原创 zoj1610
本来是以十作为例子,然后发现改成八千就全都错了看来是整个思路都有问题。。先贴上来#include#include #include #includeusing 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
287
原创 zoj2833
这个并查集的题目写的倒是挺快的然而说我超时。。#include#includeusing 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
561
原创 zoj1002
老师上课讲了一次,然后自己觉得自己好像懂了结果代码看似差不多地写出来了,然而,就是一个else,就差了十万八千里啊!!!#includeusing 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
547
原创 zoj2812
#include#include#includeusing 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
215
原创 zoj1383
#includeusing 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
231
转载 poj2503
开个博客来立flag认认真真的打ACM虽然感觉很后悔,应该早一点开始的不过现在开始干活,应该也为时不晚吧ACM就像是一道大关卡每次不管是别人觉得多简单的题目我都很难AC难过直到现在这个还是runtime error#include#include#include#includeusing namespace std;ostream&ope
2017-03-11 18:26:52
238
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人