mthoutai

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 181 下一页

2017年7月23日

摘要: 转载请注明出处:http://blog.csdn.net/guolin_blog/article/details/17357967 不知不觉中,带你一步步深入了解View系列的文章已经写到第四篇了。回想一下,我们一共学习了LayoutInflater的原理分析、视图的绘制流程、视图的状态及重绘等知识 阅读全文
posted @ 2017-07-23 16:43 mthoutai 阅读(274) 评论(0) 推荐(0)

摘要: 代码: #include <iostream> #include <stdio.h> #include <string.h> #include <stdlib.h> using namespace std; const int Max=200010; int RMQ[Max+10]; int tot 阅读全文
posted @ 2017-07-23 15:11 mthoutai 阅读(256) 评论(0) 推荐(0)

摘要: 题目链接:http://www.lightoj.com/volume_showproblem.php?problem=1088 题意: 有一维的n个点和q条线段。询问每条线段上的点有多少个。 思路:寻找这些点中对于每条线段的上下界就可以。 代码: #include <stdio.h> #includ 阅读全文
posted @ 2017-07-23 14:08 mthoutai 阅读(407) 评论(0) 推荐(0)

摘要: 公司有个需求就是要随着屏幕的改变而载入附近的商户信息. 那么高德地图获取当前屏幕中心点的经纬度呢? 核心方法:aMap.setOnCameraChangeListener(this); 实现接口: @Override public void onCameraChange(CameraPosition 阅读全文
posted @ 2017-07-23 13:33 mthoutai 阅读(4587) 评论(0) 推荐(0)

摘要: #include <cstdio> #include <iostream> #include <algorithm> #include <queue> #include <cmath> #include <cstring> #include <stack> #include <set> #inclu 阅读全文
posted @ 2017-07-23 12:43 mthoutai 阅读(238) 评论(0) 推荐(0)

摘要: 雪影工作室版权全部,转载请注明【http://blog.csdn.net/lina791211】 1、前言 纯Javascript 设置首页,增加收藏。 2、设置首页 // 设置为主页 function SetHome(obj, vrl) { try { obj.style.behavior = ' 阅读全文
posted @ 2017-07-23 11:32 mthoutai 阅读(325) 评论(0) 推荐(0)

摘要: JavaWeb页面添加隐藏版权信息。 首先,我推荐一个值得玩味的版权站点,有兴趣的朋友能够去看上一看。Nazo Level 1,这个demo中我能发掘到有5个步骤,你看你能发现几层? 接下来。我来介绍一下我自己设计的一个隐藏版权信息,我觉得还不错。 效果图 准备版权信息 在一个你能够控制的serve 阅读全文
posted @ 2017-07-23 09:32 mthoutai 阅读(1011) 评论(0) 推荐(0)

摘要: D. Valid Sets time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output As you know, an undirected 阅读全文
posted @ 2017-07-23 08:46 mthoutai 阅读(233) 评论(0) 推荐(0)

摘要: 非常久没有写关于string的博客了。由于写的差点儿相同了。可是近期又与string打交道,于是荷尔蒙上脑,小蝌蚪躁动。 在程序中,假设用到了颜色代码,一般都是十六进制的,即hex。 可是server给你返回一个颜色字符串。即hex string 你怎么把这个hex string 转为 hex,并在 阅读全文
posted @ 2017-07-23 08:08 mthoutai 阅读(10585) 评论(0) 推荐(0)

2017年7月22日

摘要: FatMouse's Speed http://acm.hdu.edu.cn/showproblem.php?pid=1160 最长递增子序列问题的一个变体。实际上跟最长递增子序列问题没有不论什么本质的差别。 定义一个结构体mice,设mice[i].w表示第i仅仅老鼠的重量,mice[i].s表示 阅读全文
posted @ 2017-07-22 21:16 mthoutai 阅读(225) 评论(0) 推荐(0)

上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 181 下一页