摘要: 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) 编辑