Description A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have ...
分类:
其他好文 时间:
2017-05-14 19:43:31
阅读次数:
179
__attribute__的属性aligned,作用是为了设置字节对齐。 aligned是对 变量和结构体进行 字节对齐的属性设置。 通过aligned属性设置(aligned(对齐字节数)),可以显示的设置对齐字节数,如果使用缺省属性(aligned()),编译器会有一个默认的字节对齐数。 ali ...
分类:
其他好文 时间:
2017-04-29 23:30:42
阅读次数:
205
UICollectionViewCell「居左显示」 准备: 一款UICollectionView居左显示的约束点击下载_UICollectionView Left Aligned Layout UICollectionView Left Aligned Layout UICollectionVie ...
分类:
其他好文 时间:
2017-04-25 21:13:32
阅读次数:
218
A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have different h ...
分类:
其他好文 时间:
2017-03-25 23:52:10
阅读次数:
305
GCC支持用__attribute__为变量、类型、函数、标签指定特殊属性。这些不是编程语言标准里的内容,而属于编译器对语言的扩展。 本文介绍其中的两个属性:aligned和packed。 aligned aligned属性最常用在变量声明上。它的作用是告诉GCC,为变量分配内存时,要分配在对齐的内 ...
分类:
其他好文 时间:
2017-02-13 15:05:35
阅读次数:
258
http://www.lydsy.com/JudgeOnline/problem.php?id=2154 (题目链接) 题意 给出${n,m}$,求$${\sum_{i=1}^n\sum_{j=1}^mlcm(i,j)}$$ Solution 莫比乌斯反演,推啊推式子。 \begin{aligned ...
分类:
其他好文 时间:
2017-02-05 10:59:09
阅读次数:
152
http://poj.org/problem?id=2154 (题目链接) 题意 n个珠子的项链,可以染上n中颜色,项链可以旋转不能翻转,求染色方案数。 Solution 经典的公式: \begin{aligned} ans &= \sum_{i=0}^{n-1} gcd(n,i)\\ &= \su ...
分类:
其他好文 时间:
2017-01-07 00:12:24
阅读次数:
219
新用到的样式: center aligned:居中 ...
分类:
其他好文 时间:
2016-12-13 07:32:22
阅读次数:
175
Given N axis-aligned rectangles where N > 0, determine if they all together form an exact cover of a rectangular region. Each rectangle is represented ...
分类:
其他好文 时间:
2016-09-01 14:33:47
阅读次数:
219
CRF 的预测问题是给定模型参数和输入序列(观测序列)x, 求条件概率最大的输出序列(标记序列)$y^*$,即对观测序列进行标注。条件随机场的预测算法同 HMM 还是维特比算法,根据 CRF模型可得: \begin{aligned}y^* &= \arg \max_yP_w(y|x) \\&= \a... ...
分类:
编程语言 时间:
2016-08-31 18:47:59
阅读次数:
191