#beautiful
3 条发现 · 精选自开放网络的发现,按时间从新到旧。
-
I Am Obsolete!
Obsolete and abandoned, but still beautiful. 1937 Hudson Terraplane. A few months ago I logged onto the web site of one of my credit card companies, only to be informed that I could not access the site because my computer's operating system was out of date. A little background: In 1993 or '94, around the time we built our house, we got our first computers -- a desktop, and a neat little Toshiba laptop that I really liked and used to write the text of t he the Rock City Barns book. It was eventually stolen. Over the years we went through machines from several different manufacturers and used su
A Life in Photography · EN
-
Luogu-P4755 Beautiful Pair
Luogu-P4755 Beautiful Pair 题意 小 D 有个数列 ${a}$,当一个数对 $(i,j)$($i \le j$)满足 $a_i$ 和 $a_j$ 的积不大于 $a_i, a_{i+1}, \ldots, a_j$ 中的最大值时,小 D 认为这个数对是美丽的。请你求出美丽的数对的数量。 $1\le n\le{10}^5$,$1\le a_i\le{10}^9$。 编程时的问题 对 ST 表不熟悉! 更 zz 的是,对 lower_bound 和 upper_bound 理解有问题,来复习一下小学知识:lower_bound 是找到“大于等于”的位置,upper_bound 是“大于”。写这道题的时候找小于某数的位置莫名其妙地用了 lower_bound,更没有 -1,完全是随手写的,半天也没察觉到这里有问题。 综上,我是 zz。 思路 考虑分治(据说这是套路),我们找出一个区间 $[l, r]$ 内的最大值位置 $mid$,然后统计所有跨过 $mid$ 的答案,再递归处理 $[l, mid-1], [mid+1, r]$。假设 $mid$ 左边的数是 $a_i$,右边的数是 $a_j$,根据题目得 $a_i * a_j \le a_{mid}$,即 $a_j \le \lfloor\frac{a_{mid}}{a_i}\rfloor$。那么我们枚举 $a_i
ChungZH 的小窝 · ZH
-
Beautiful Universe
The post Beautiful Universe appeared first on The Perry Bible Fellowship .
PBF · EN