#pair
3 件の発見 · オープンなウェブから選んだ発見を新しい順に。
-
The IKEA Kajplats bulb wouldn't pair because my network had no IPv6
Matter over Thread requires IPv6 on your local network, so if you can’t pair the IKEA Kajplats bulb that might be why. I didn’t have IPv6 enabled, and my ISP doesn’t assign IPv6, so I used unique-local-ipv6.com to get a unique prefix. Configured it as static in my local network setup, alongside the IPv4 configuration, on my UniFi Dream Machine and then all my bulbs connected. Now my niece is learning to pronounce English colors as she cycles my apartment through every shade of the rainbow 😁
bjorn.now · 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
-
Hera Probe Sees Asteroid Pair Separately for First Time
Planetary defense is a growing concern among the scientific community, as efforts have been made to design and implement missions meant to deflect incoming threats to the Earth well in advance. In 2022, NASA intentionally collided the Double Asteroid Redirection test (DART) planetary defense spacecraft into the smaller asteroid of the binary asteroid, Didymos and Dimorphos, with the latter being the smaller one. While the goal was to ascertain if deflecting an asteroid is feasible, how did this influence the geological characteristics of Dimorphos, and what can it teach us about planetary defe
Universe Today · EN