上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 56 下一页
摘要: #include #include #include #include #include #include #include #include #include #include #define inf 2147483647 #define ls rt'9'){ if(c=='-')y=-1; c=g(); } while(c='0'){ ... 阅读全文
posted @ 2019-07-09 16:45 WeiAR 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include "pch.h" #include #include "opencv2/imgproc/imgproc.hpp" #include #include using namespace cv; using namespace std; int main(){ Mat image; image = imread("1.jpg", IMREAD_COLOR); ... 阅读全文
posted @ 2019-06-04 11:02 WeiAR 阅读(2813) 评论(0) 推荐(0) 编辑
摘要: openCV图像合成 //#include <cv.h> #include <opencv2/core/core.hpp> #include<opencv2/highgui/highgui.hpp> //#include <highgui.h> #include <iostream> using n 阅读全文
posted @ 2019-06-03 16:08 WeiAR 阅读(796) 评论(0) 推荐(0) 编辑
摘要: macOS下安装openCV+Xcode配置打开终端 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew install wgetbrew ins 阅读全文
posted @ 2019-06-03 15:31 WeiAR 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: pip3 install -U spacy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com python3 -m spacy download en 在终端里输一下就完事了 # import stanfordnlp # 阅读全文
posted @ 2019-05-22 18:26 WeiAR 阅读(611) 评论(0) 推荐(0) 编辑
摘要: Mac环境下 jieba 配置记录 在终端里pip3 install jieba -i http://pypi.douban.com/simple --trusted-host pypi.douban.com -i http://pypi.douban.com/simple --trusted-ho 阅读全文
posted @ 2019-05-22 17:03 WeiAR 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<cstdio> 3 #include<queue> 4 #include<algorithm> 5 #include<cmath> 6 #include<ctime> 7 #include<set> 8 #include<map> 9 阅读全文
posted @ 2019-05-07 11:04 WeiAR 阅读(189) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/gym/100623/attachments H题已经给出来的,包括后来添加的,都累加得到ans,那么从1~ans都是可以凑出来的,如果ans<a[now]-1,那么就添加一个ans+1,然后继续操作。 1 #include<iostream> 2 #in 阅读全文
posted @ 2019-04-30 23:17 WeiAR 阅读(135) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/gym/100623/attachments E题第一个优化它虽然是镜像对称,但它毕竟是一一对称的,所以可以匹配串和模式串都从头到尾颠倒一下第二个优化,与次数无关,所以排个序就完事了 1 #include<iostream> 2 #include<cstd 阅读全文
posted @ 2019-04-30 21:12 WeiAR 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 2016年省赛 G Triple Nimnim游戏,要求开始局面为先手必败,也就是异或和为0。如果n为奇数,二进制下最后一位只有两种可能1,1,1和1,0,0,显然异或和为1,所以方案数为0如果n为偶数,举个例子,14,二进制为1110,我们按位来拆1110==1000+100+101000=100 阅读全文
posted @ 2019-04-30 11:23 WeiAR 阅读(166) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 56 下一页