上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: Do you know what is called ``Coprime Sequence''? That is a sequence consists of nnpositive integers, and the GCD (Greatest Common Divisor) of them is 阅读全文
posted @ 2018-04-28 21:29 zhang_upstar 阅读(153) 评论(0) 推荐(0) 编辑
摘要: HDU - 1702 ACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark the room he was put into is, so poor :(.  阅读全文
posted @ 2018-04-15 17:36 zhang_upstar 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 一直没写关于线段树的题解,简单的补两个部分。完整的请转https://blog.csdn.net/yrhsilence/article/details/5793699 线段树做了很多,感觉这类题其实比别的算法更简单,只不过代码量比较大。 关于树,大家明白一点就行 父节点 n —— —— 父节点*2 阅读全文
posted @ 2018-04-03 23:37 zhang_upstar 阅读(191) 评论(0) 推荐(0) 编辑
摘要: String 字符串常量StringBuffer 字符串变量(线程安全)StringBuilder 字符串变量(非线程安全) 简要的说, String 类型和 StringBuffer 类型的主要性能区别其实在于 String 是不可变的对象, 因此在每次对 String 类型进行改变的时候其实都等 阅读全文
posted @ 2018-03-21 19:56 zhang_upstar 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 1. 类名称必须采用public class Main方式命名 2. 在有些OJ系统上,即便是输出的末尾多了一个“ ”,程序可能会输出错误,所以在我看来好多OJ系统做的是非常之垃圾 3. 有些OJ上的题目会直接将OI上的题目拷贝过来,所以即便是题目中有输入和输出文件,可能也不需要,因为在OJ系统中一 阅读全文
posted @ 2018-03-20 17:32 zhang_upstar 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 女神镇python.jpg 首先要导入OpenCV包,方法为: 在Python中不需要声明变量,所以也就不需要C++中的cv::Mat xxxxx了。只需这样:(路径根据实际情况啦)OpenCV目前支持读取bmp、jpg、png、tiff等常用格式。 创建一个窗口 显示图像 加个延时,相当于pasu 阅读全文
posted @ 2018-01-18 12:20 zhang_upstar 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 在opencv官网(http://opencv.org/)下载linux版本的opencv压缩包。 然后选择opencv下载文件夹,在终端中输入:cd (压缩包地址);将下载的文件解压 unzip opencv-3.2.0.zip 进入opencv-3.2.0目录,创建编译目录,编译,命令如下: c 阅读全文
posted @ 2018-01-18 12:05 zhang_upstar 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 1001Apple Problem Description Apple is Taotao's favourite fruit. In his backyard, there are three apple trees with coordinates (x1,y1), (x2,y2), and ( 阅读全文
posted @ 2017-09-18 14:56 zhang_upstar 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 题目描述 鸡国中的母鸡最擅长下蛋了,MGMG 是鸡国中一只以下蛋产量高而闻名全鸡国的母鸡。 鸡国专供下蛋的 n 个鸡窝呈一字排列在鸡国的“下蛋中心”,从左到右依次编号为 1 到n。每个鸡窝都有一个最大可下蛋的量,其中第 i 个鸡窝的最大可下蛋量为 ci 。有时候由于MGMG 产量实在太大而无法在一个 阅读全文
posted @ 2017-07-26 15:13 zhang_upstar 阅读(475) 评论(0) 推荐(0) 编辑
摘要: Ubuntu操作基本快捷键* 打开主菜单 = Alt + F1* 运行 = Alt + F2* 显示桌面 = Ctrl + Alt + d* 最小化当前窗口 = Alt + F9* 最大化当前窗口 = Alt + F10* 关闭当前窗口 = Alt + F4* 截取全屏 = Print Screen 阅读全文
posted @ 2017-06-11 21:34 zhang_upstar 阅读(16256) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页