摘要:
#os模块 用于提供系统级别的操作 #当前执行这个python文件的工作目录相关的工作路径 os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径(在哪里执行就是那个路径) os.chdir("dirname") 改变当前脚本工作目录;相当于shell下cd os.curdi 阅读全文
posted @ 2018-08-08 15:14
小学弟-
阅读(169)
评论(0)
推荐(0)
摘要:
Go 是一个开源的编程语言,它能让构造简单、可靠且高效的软件变得容易。 Go是从2007年末由Robert Griesemer, Rob Pike, Ken Thompson主持开发,后来还加入了Ian Lance Taylor, Russ Cox等人,并最终于2009年11月开源,在2012年早些时候发布了Go 1稳定版本。现在Go的开发已经是完全开放的,并且拥有一个活跃的社区。 Go... 阅读全文
posted @ 2018-08-08 14:52
小学弟-
阅读(167)
评论(0)
推荐(0)
摘要:
#include "iostream" #include "algorithm" #include "cstdio" using namespace std; const int maxn=200; typedef struct { int a,b,v,c; }node; int ans; node graph[maxn*(maxn-1)/2]; int father[maxn]; in... 阅读全文
posted @ 2018-08-08 14:47
小学弟-
阅读(79)
评论(0)
推荐(0)
摘要:
#include #include #include #include using namespace std; typedef struct { int a,b; double v; }node; typedef struct { int a,b; }P; const int maxn=109; double ans; int father[maxn]; nod... 阅读全文
posted @ 2018-08-08 14:46
小学弟-
阅读(99)
评论(0)
推荐(0)
摘要:
HDU 1233(最小生成树 模板) #include #include #include using namespace std; typedef struct { int a,b; int v; }node; const int maxn=105; int ans; int father[maxn]; node graph[maxn*(maxn-1)/2]; int ... 阅读全文
posted @ 2018-08-08 12:51
小学弟-
阅读(96)
评论(0)
推荐(0)
摘要:
http://poj.org/problem?id=3278 #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define maxn 1... 阅读全文
posted @ 2018-08-08 11:17
小学弟-
阅读(99)
评论(0)
推荐(0)
摘要:
http://poj.org/problem?id=2386 #include #include using namespace std; const int MAX = 10000; char Map[MAX][MAX]; int N,M; int d[8][2]={{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}}; bool... 阅读全文
posted @ 2018-08-08 11:16
小学弟-
阅读(132)
评论(0)
推荐(0)