自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

micsay的博客

追梦人在路上

  • 博客(43)
  • 收藏
  • 关注

原创 深入剖析Visual Studio Code

详情点击:深入剖析Visual Studio Code

2020-01-17 12:59:33 190

原创 HighChart pie饼图多选 and 折线图 add 增加 remove删除series数据列

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head> <meta charset="utf-8"> <link rel="icon" href="https://static.jianshukeji.com/high

2017-08-05 13:23:45 987

原创 文档收藏夹

Tomcat8Tomcat8 Document Tomcat8配置文档FushsiaGetting StartedChromium/Chrome OSQuick Start GuideSpring BootGetting StartAxis2Quick Start GuideAntManulSdkmanInstallation

2017-06-04 16:45:38 393

翻译 Compile chromium OS on Debian

官方文档:链接 如果英文过得去,建议直接看官方文档,比较直接痛快,写这个博客的意思就是抛砖引玉编译前提:Ubuntu linux(version==14.04 - Trusty)(笔者注:我是在Debian 8 下面编译的)64位系统需要Root权限预先安装git等工具,可以直接执行以下命令sudo aptitude install git-core gitk git-gui subve

2017-05-31 22:54:19 694

原创 Android property-animation 占CPU偏高

//Kotlin codeclass MainActivity : AppCompatActivity() { val TAG: String = "MAINACTIVITY" override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)

2017-05-30 12:08:47 1528

原创 使用XMLEncoder/XMLDecoder和DocumentBuilder实现XML和String互相转换

package com.micsay;import java.util.*;import java.io.*;import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import javax.xml.parsers.ParserConfigurationException

2017-05-26 21:40:42 705

原创 Android EditText underline color /安卓 EditText 下划线 底线 颜色

<EditText android:backgroundTint="#000000" <!-- 下划线颜色 --> android:layout_width="match_parent" android:layout_height="wrap_content" />

2017-03-27 18:27:17 1137

原创 yii2 beforecontrolleraction

在yii里面还有beforeControllerAction()这个函数,但是到了yii2里面就没了,但是不要着急,这个功能还在,改成了beforeAction()namespace app\modules\back;class Back extends \yii\base\Module{ public $controllerNamespace = 'app\modules\back\co

2016-11-18 00:03:03 1176

原创 Yii2 验证码 captcha for rest api

前言用yii2的restful做了一个APP后端,yii2自带速率控制,很爽,但是有的地方又必须用图片验证码,比如登录的时候,要防止暴力破解。yii2是自带图片验证码的,但是封装的太好了,只适用于web。找来找去,packagist.org上也找到了一个比较好的,叫Gregwar/Captcha,但是用了之后,又转念一想,能不能自行封装一下yii2自带的那个图片验证码呢?于是就有了下面的代码代码实现

2016-11-05 16:49:54 3228

原创 Spring Boot 学习

https://course.tianmaying.com/web-development

2016-10-19 16:13:29 187

原创 react-native failed

目前,当我调试react-native的时候,有的时候更改了xml文件,需要重新运行react-native run-andriod来生成,按下回车后,很少有时候是一次运行成功的,都是重复执行react-native run-android,每次执行fail reason就换一次,多试几次,,就成功了,目前没找到原因。运行环境:windows 10 + Android-React-Native +

2016-10-16 15:32:09 272

原创 Redux学习

学习资源:cn.redux.js.org/index.html

2016-10-05 16:28:54 256

原创 MYSQL 常用命令

添加字段alter table yourTableName add yourColumnName yourColumnTypeex:alter table user add accessToken varchar(120);

2016-09-24 16:17:43 194

原创 React Native 常用功能【调用QQ聊天 调用拨号】

//Linking为RN自带的组件 let url = "mqqwpa://im/chat?chat_type=wpa&uin=QQ号" Linking.canOpenURL(url).then(supported => { if (supported) { Linking.openURL(url); } });

2016-09-18 18:30:12 2075

原创 Yii2 常用功能模块【文件下载 邮件发送 UrlManager】

文件下载Yii::$app->response->sendFile("F://form.doc")->send(); 邮件服务器配置: //以aliyun企业邮为例,在config/web.phpd的'components'里面配置 'urlManager' => [ .... ], 'mailer' => [

2016-09-14 10:49:48 1313

原创 【JavaScript JSX ES6】阿拉伯数字日期和时间转中文大写

<script>const numberToCN = ['〇','一','二','三','四','五','六','七','八','九','十', '十一','十二','十三','十四','十五','十六','十七','十八','十九', '二十','二十一','二十二','二十三','二十四','二十五','二十六','二十七', '二十八','二十九','三十','三十一

2016-09-03 01:10:21 2681

原创 flexbox 学习笔记【RN】

声明:以下图片摘自互联网,如有侵权,请联系作者删除。flexbox属性容器属性:flexDirection enum(’row’,’column’(默认)) 默认方向flexWrap enum(wrap,nowrap)是否自动换行alignItemsjustifyContent元素属性:flexalignSelf声明样式使用样式获取宽高获取屏幕密度文本元素支持的属性设置文本的限制行数

2016-08-21 15:56:02 237

原创 今天被教做人

22岁的今天,一念之差,被教做人,甚是感伤,得两教训:其一,无论别人怎样走歪门邪道,你都不应该学,应该报以鄙视,而不是抱怨;其二,不应该禁不住诱惑,人生路太长,诱惑很多,但仍应该知道对错,做对的事,做正的人。——2016.08.19

2016-08-19 16:41:24 282

原创 HDU 2089 不要62 [数位dp]

题干走你题解/***数位dp,转移方程很好想,需要仔细考虑的是,怎样通过计算出来的dp数组*得出结果,也就是本题目里面的work()函数,我写的有点乱,但是好在AC了*/#include<cstdio>#include<cstring>#include<algorithm>using namespace std;int dp[10][10];int work(int n){

2016-08-12 10:37:00 238

原创 POJ 2955 Brackets [区间dp]

题干走你题解#include<cstdio>#include<cstring>#define max(x,y) (x) > (y) ? (x) : (y)#define min(x,y) (x) < (y) ? (x) : (y)bool equal(char s[],int i,int j){ return (s[i]== '(' && s[j] == ')') || (s[i] ==

2016-08-11 10:31:05 201

原创 HDU 2196 Computer [树形dp]

题干走你题解/***比较经典的树形dp*跑两次深搜,都是从根1开始搜索,第一次深搜获得最大子树,*第二次深搜是在第一次深搜的基础上,进行dp操作,获得最终结果*一个结点最终的结果,可能来自于这个结点的父亲,也可能来自这个结点的儿子,而儿子在第一次深搜*的时候就得出来了,所以应该从上往下搜出来自父亲的最大权值来决定是否再次更新*/#include<cstdio>#include<vec

2016-08-10 19:04:44 273

转载 poj动态规划经典题目

列表一:经典题目题号: 容易: 1018, 1050, 1083, 1088, 1125, 1143, 1157, 1163, 1178, 1179, 1189, 1191,1208, 1276, 1322, 1414, 1456, 1458, 1609, 1644, 1664, 1690, 1699, 1740, 1742, 1887, 1926, 1936, 1952, 1953, 1

2016-08-03 23:46:07 870

原创 HDU 2639 Bone Collector II [动态规划 第k大01背包]

题干Problem Description The title of this problem is familiar,isn’t it?yeah,if you had took part in the “Rookie Cup” competition,you must have seem this title.If you haven’t seen it before,it doesn’t ma

2016-08-01 20:53:46 313

原创 POJ 2184 Cow Exhibition [动态规划 01背包]

??Description“Fat and docile, big and dumb, they look so stupid, they aren’t much fun…” - Cows with Guns by Dana Lyons The cows want to prove to the public that they are both smart and fun. In orde

2016-08-01 15:38:58 224

原创 后缀数组

这里是罗老师的讲解,我认为够详细了。 用后缀数组解字符串子串问题,要先理清楚SA数组,Rank数组,Height数组的真正含义,再将某个问题的答案用这三个数组表达出来,有时候可能要加上自己另外构造的辅助数组,公式写出来了,就成功了一半。

2016-07-30 11:33:04 190

原创 POJ 2533 最长上升子序列 [动态规划 + 二分搜索]

题干DescriptionA numeric sequence of ai is ordered if a1 < a2 < … < aN. Let the subsequence of the given numeric sequence (a1, a2, …, aN) be any sequence (ai1, ai2, …, aiK), where 1 <= i1 < i2 < … < iK <

2016-07-29 15:50:17 285

原创 HDU 5289 Assignment [RMQ区间查询+二分搜索]

题干hdu 5289走你题解/***RMQ区间查询+二分搜索**/#include<cstdio>#include<cmath>#include<algorithm>using namespace std;const int INF = 1e9;const int MAX = 100010;int root[MAX];int mpmax[MAX*2][65];int mpmin

2016-07-29 11:39:34 258

原创 POJ 1062 昂贵的聘礼 [最短路径 SPFA]

题干Description年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:”嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币。如果你能够弄来他的水晶球,那么只要5000金币就行了。”探险家就跑到大祭司那里,向他要求皮袄或水晶球,大祭司要他用金币来换,

2016-07-25 20:28:03 333

原创 POJ 3254 Corn Fields [动态规划 简单状态压缩]

题干DescriptionFarmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yummy corn for the cows on a number of squares. R

2016-07-24 19:29:14 284

原创 HDU 5723 Abandoned country [最小生成树+dfs]

题干Problem Description An abandoned country has n(n≤100000) villages which are numbered from 1 to n. Since abandoned for a long time, the roads need to be re-built. There are m(m≤1000000) roads to be r

2016-07-22 19:33:30 233

原创 POJ 1703 Find them, Catch them[并查集]

题干DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Gang Snake. However, the police first needs to iden

2016-07-21 11:14:05 259

原创 HDU 4597 Play Game[博弈论 负值最大函数 记忆化搜索]

题干Problem Description Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns to pick up the top or bottom card from

2016-07-20 19:47:39 393

原创 HDU 5726 GCD [RMQ+二分]

题干链接:走你题解/***@author micsay*先用RMQ预处理各个区间的gcd,然后再用二分法+map统计相同gcd区间的区间个数*具体解题思路请看注释**/#include<cstdio>#include<cmath>#include<cstring>#include<map>//构建mp数组的函数int _func(int a,int b){ if(!a)ret

2016-07-20 11:49:38 223

原创 HDU 2062 Subset sequence[排列组合]

题干Problem Description Consider the aggregate An= { 1, 2, …, n }. For example, A1={1}, A3={1,2,3}. A subset sequence is defined as a array of a non-empty subset. Sort all the subset sequece of An in le

2016-07-16 20:39:07 244

原创 POJ 1837 Balance [动态规划——完全背包]

题干DescriptionGigel has a strange “balance” and he wants to poise it. Actually, the device is different from any other ordinary balance. It orders two arms of negligible weight and each arm’s length i

2016-07-16 11:17:05 312 1

原创 HDU 1005 Number Sequence[数论]

题干Problem Description A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the value of f(n).Input The input

2016-07-15 17:02:00 258

原创 ACM[数论公式]

同余与模运算(a+b)mod n = ((a mod n)+(b mod n))mod n(a-b) mod n = ((a mod n)-(b mod n) + n)mod na*b mod n = (a mod n)(b mod n)mod n

2016-07-15 14:25:13 420

原创 HDU 1203 I NEED A OFFER![动态规划——01背包问题+简单概率]

题干Problem Description Speakless很早就想出国,现在他已经考完了所有需要的考试,准备了所有要准备的材料,于是,便需要去申请学校了。要申请国外的任何大学,你都要交纳一定的申请费用,这可是很惊人的。Speakless没有多少钱,总共只攒了n万美元。他将在m个学校中选择若干的(当然要在他的经济承受范围内)。每个学校都有不同的申请费用a(万美元),并且Speakless估计了他

2016-07-15 11:13:57 396

原创 HDU 1087 Super Jumping! Jumping! Jumping![动态规划——最大递增子序列]

之前做过最长递增子序列,这次碰到一个最大递增子序列,题意如下: 有一个跳跳棋棋盘,棋盘上面每个位置都有一个正数,你只能从左到右跳,每踩到一个位置,你的总分就加上该位置的数,一次可以跳一个或者多个,并且,你踩的数只能越踩越大 求最大你能得到的总分 状态转移公式如下: dp[i] = max{ dp[0],dp[1],....dp[j] } &&chess[max_pos]<chess[i]

2016-07-15 10:56:18 372

原创 ACM 求素数 线性筛法 o[n]

线性筛法,终于搞明白了,附带大神的讲解,走你const int N = 5000;int isNotPrime[N]={1,1};//0和1都不是素数,其他的取默认值0代表是素数int prime[N];//保存素数的数组int num_prime;//prime[]数组里面素数的个数,取默认值为0void init_prime(){ for(int i=2; i<N; i++){

2016-07-14 10:41:51 895

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除