摘要: 1.pycharm 自动换行,显示行号,缩进向导在代码右侧右键2.自动注释/取消注释 ctrl + / 阅读全文
posted @ 2015-08-24 16:15 雪溯 阅读(307) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=3020 1 #include 2 #include 3 #include 4 using namespace std; 5 char maz[62][62]; 6 int e[500][500]; 7 int d[4][2]={0,1,0,... 阅读全文
posted @ 2015-08-24 16:03 雪溯 阅读(242) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=3041#include #include #include using namespace std;int e[1004][1004];bool vis[1004];vector G[1004];int n,m;int dfs(int s){ ... 阅读全文
posted @ 2015-08-24 16:01 雪溯 阅读(189) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1094#include #include #include using namespace std;int in[27],out[27];char index[27];bool vis[27];int mem[27][27];int n,m;in... 阅读全文
posted @ 2015-08-24 15:57 雪溯 阅读(146) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2240用log化乘法为加法找正圈c++ 110ms,g++tle#include #include #include #include #include #include using namespace std;const int maxn = ... 阅读全文
posted @ 2015-08-24 14:29 雪溯 阅读(235) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1125#include #include using namespace std;int d[101][101];// dag ATTENTIONint num[101];//the number of contractsint edge[101... 阅读全文
posted @ 2015-08-24 12:00 雪溯 阅读(106) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2253#include #include #include #include using namespace std;queue que;int co[202][2];double d[202][202],u[202][202];int n;i... 阅读全文
posted @ 2015-08-24 11:58 雪溯 阅读(140) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1062#include #include #include using namespace std;int m,n;struct adjlist{ int c[101],t[101];}a[101];int d[101],tm[101],l... 阅读全文
posted @ 2015-08-24 11:57 雪溯 阅读(110) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1860#include //#include //#include #include using namespace std;#define MAXM 202#define MAXN 101int n,m;int first[MAXN];int ... 阅读全文
posted @ 2015-08-24 11:53 雪溯 阅读(194) 评论(0) 推荐(0) 编辑
摘要: #define ONLINE_JUDGE#include#include #include using namespace std;int A,B,sx,sy;char maz[101][101];int vis[101][101];const int dx[4]={0,1,0,-1};const ... 阅读全文
posted @ 2015-08-24 11:50 雪溯 阅读(143) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2632#include#include #include using namespace std;int A,B,n,m;int robot[101][3];char rbuff[10];int dir[255];const int dx[4]=... 阅读全文
posted @ 2015-08-24 11:48 雪溯 阅读(175) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1068#include#include using namespace std;int ind[45];bool used[45];int r[21];int l[21];int len,n,llen;int w[21];int main(){ ... 阅读全文
posted @ 2015-08-24 11:45 雪溯 阅读(120) 评论(0) 推荐(0) 编辑