Codeforces Codeforces Round 484 (Div. 2) E. Billiard 题目连接: "http://codeforces.com/contest/982/problem/E" Description Consider a billiard table of rect ...
分类:
其他好文 时间:
2018-06-13 11:51:42
阅读次数:
203
GitLab修改root用户密码GitLab是一个私有的Git仓库,具有较好的项目管理和用户管理能力。 对于普通用户而言,通过系统的重置密码,接受邮件即可解决,可是GitLab的管理员账号,缺省的邮箱是一个不存在的邮箱地址,所以没有办法通过邮箱来复位。 通过在服务器上,可以修改用户的密码: 官方修改 ...
分类:
其他好文 时间:
2018-06-10 15:19:59
阅读次数:
1081
问题描述: Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c" Corner Cas ...
分类:
其他好文 时间:
2018-06-10 12:10:27
阅读次数:
149
比如 、`left transform translate`方法,他们的百分比都是相较谁而言的? 、`left`是基于父元素的: translate的参数:left(x 坐标) 和 top(y 坐标) 位置参数 , 如果是百分比,会以本身的长宽做参考 的时候: 把 设置成 的时候, 的左、上距离就是 ...
分类:
Web程序 时间:
2018-06-05 21:13:36
阅读次数:
2495
题目大意: 输入n m 接下来n行m列 0表示不能种玉米 1表示能 要求种玉米位置的上下左右四连通区域不能种玉米 输出方案数 Sample Input 2 31 1 10 1 0 2 31 1 10 1 0 Sample Output 9 9 Hint Number the squares as f ...
分类:
其他好文 时间:
2018-05-23 18:07:33
阅读次数:
158
[抄题]: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: [思维问题]: [英文数据结构或算法,为什么不用别的数据结构或算法]: [一句话思路]: [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异 ...
分类:
其他好文 时间:
2018-05-20 12:57:58
阅读次数:
195
TextView textView = new TextView(this); GradientDrawable drawable = new GradientDrawable(); drawable.setCornerRadius(5); drawable.setStroke(1, Color.p... ...
分类:
移动开发 时间:
2018-05-19 22:33:11
阅读次数:
220
The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a ...
分类:
其他好文 时间:
2018-05-19 10:42:47
阅读次数:
183
To quit the vi editor without saving any changes you've made If you are currently in insert or append mode, press Esc . Press : (colon). The cursor sh ...
分类:
其他好文 时间:
2018-05-17 23:15:17
阅读次数:
200
Corn Fields Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 18789 Accepted: 9880 Description Farmer John has purchased a lush new rectangul ...
分类:
其他好文 时间:
2018-05-17 16:52:51
阅读次数:
138