- 博客(10)
- 资源 (2)
- 收藏
- 关注
原创 Docker入门手记
本文保持随时更新:http://www.lucien.ink/archives/301/ 安装Docker 个人表示用的清华大学的源,直接傻瓜安装就成功了。 sudo apt install docker 或 yum install docker 镜像加速 从Docker Hub直接获取镜像实在是太慢了,类似于Linux里的换软件源,Docker也可以自定义镜像的来源,这...
2018-06-20 15:42:47 224
原创 Nginx在域名301的情况下SSL
前几天突然发现一件事,就是访问Google和Baidu的根域名都会跳转到www的域名下,没有搜到为什么要这样做,但还是效仿着搞一搞吧。 对我个人来说,301跳转之后存在一个历史问题,就是以前我在很多地方留的链接地址都是https://lucien.ink,这样的话在我开了301跳转之后,通过80端口验证的时候申请/续期不了Let's Encrypt的证书,通过443端口验证的话又要暂停一...
2018-06-16 16:10:44 537
原创 Sublime Text 3 Build 3176 License
先在hosts文件里加入两行: 127.0.0.1 www.sublimetext.com 127.0.0.1 license.sublimehq.com 目的是防止Sublime Text更新和检测,不知道怎么修改hosts文件的可以百度一下,这里就不赘述。 然后在Sublime Text里点Help输入License: ----- BEGIN LICENSE ----- sgbteam...
2018-06-13 23:02:44 7153 4
原创 Codeforces - 989
http://www.lucien.ink/archives/272/ 987的时候B不会做,这场C不会做,感觉很接近退役了。当时想到了类似的做法,先把最少的一个用到只剩一个,然后用那一个铺满图,但是很难写,写了一个多小时也没写出来。 Codeforces-989C - A Mist of Florescence - 思维 Codeforces-989B - A Tide of Rive...
2018-06-13 20:23:15 267
原创 Codeforces-989C - A Mist of Florescence - 思维
题解链接 https://www.lucien.ink/archives/270/ 题目链接 http://codeforces.com/contest/989/problem/C 题目 There are four kinds of flowers in the wood, Amaranths, Begonias, Centaureas and Dianthuses. ...
2018-06-13 20:16:15 280
原创 Codeforces-989B - A Tide of Riverscape - 思维
题解链接 http://www.lucien.ink/archives/269/ 题目链接 http://codeforces.com/contest/989/problem/B 题目 The records are expressed as a string s of characters ‘0’, ‘1’ and ‘.’, where ‘0’ denotes a low ti...
2018-06-13 19:57:11 394
原创 Codeforces-989A - A Blend of Springtime - 水题
题解链接 http://www.lucien.ink/archives/268/ 题目链接 http://codeforces.com/contest/989/problem/A 题目 The landscape can be expressed as a row of consecutive cells, each of which either contains a flow...
2018-06-13 19:46:38 268
原创 POJ2689 - Prime Distance - 数论
题解链接 http://www.lucien.ink/archives/267/ 题目链接 http://poj.org/problem?id=2689 题目 Description The branch of mathematics called number theory is about properties of numbers. One of the areas ...
2018-06-13 19:11:08 320 5
原创 2018徐州邀请赛B - Array - 动态规划
题解链接 http://www.lucien.ink/archives/251/ 题目 题目描述 JSZKC is the captain of the lala team. There are N girls in the lala team. And their height is [1,N] and distinct. So it means there are no tw...
2018-06-06 17:12:46 900
原创 2018徐州邀请赛I - T-shirt - 矩阵快速幂
题解链接 http://www.lucien.ink/archives/249/ 题目 题目描述 JSZKC is going to spend his vacation! His vacation has N days. Each day, he can choose a T-shirt to wear. Obviously, he doesn’t want to wear ...
2018-06-06 15:08:06 878
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人