上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页
摘要: 1 #include 2 #include 3 using namespace std; 4 5 const int maxn = 1e5 + 5; 6 int a[maxn]; 7 8 int main(){ 9 int t; 10 cin >> t; 11 while(t--){ 12 int n; 13 ci... 阅读全文
posted @ 2018-05-07 16:24 ouyang_wsgwz 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 mapq; 8 9 int main(){ 10 int t; 11 cin >> t; 12 int cnt = 0; 13 while(t--){ 14 cnt++; 15 ... 阅读全文
posted @ 2018-05-05 21:13 ouyang_wsgwz 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 const int MAXN = 5e4+5; 9 struct node 10 { 11 int pos, val; 12 }; 13 node a[MAXN], q[MAXN]; 14 15... 阅读全文
posted @ 2018-05-05 20:53 ouyang_wsgwz 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 5 const int maxn =100000+5; 6 struct node{ 7 int r, q; 8 }a[maxn]; 9 10 bool cmp(node x, node y){ 11 if(x.r - x.q != y.r - y.q) 12 ... 阅读全文
posted @ 2018-05-05 19:49 ouyang_wsgwz 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 typedef long long LL; 7 const int MAXN = 1e4+5; 8 const LL INF = 1e15+5; 9 LL a[MAXN], sum[MAXN], ans[MAXN]; 10 11 int main()... 阅读全文
posted @ 2018-05-05 18:49 ouyang_wsgwz 阅读(236) 评论(0) 推荐(0) 编辑
摘要: wordcloud 库把词云当作一个WordCloud对象 ——wordcloud.WordCloud() 代表一个文本对应的词云 ——可以根据文本中词语出现的频率等参数绘制词云 ——绘制词云的形状、尺寸和颜色(自己设定) w = wordcloud.WordCloud() 生成一个词云对象w w. 阅读全文
posted @ 2018-05-05 15:43 ouyang_wsgwz 阅读(1500) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 const int maxn = 105; 5 struct Node 6 { 7 int father; 8 int level; 9 bool NoChild; 10 }; 11 12 Node v[maxn]; 13 int level[maxn]; 1... 阅读全文
posted @ 2018-05-03 22:03 ouyang_wsgwz 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 后来提交一波的时候,最后一组数据超时,于是改用贪心,排序一遍过的: 阅读全文
posted @ 2018-05-03 21:09 ouyang_wsgwz 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 const int INF = 0xfffffff; 10 int g[17][17]; 11 int f[17][17] = {}; 12 int ans[17][17] = {... 阅读全文
posted @ 2018-04-29 21:53 ouyang_wsgwz 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int s,n,m; 7 int vis[105][105][105]; 8 9 struct node 10 { 11 int s,n,m,step; 12 }; 13 int check(int x,int y,... 阅读全文
posted @ 2018-04-29 17:30 ouyang_wsgwz 阅读(184) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页