高中数学学习笔记 - 椭圆

发布于

我怎么也沦落到发这种文章了。

整理都整理完了,不发白不发。

1 定义

给定两点 $F_1, F_2$,令 $|F_1F_2| = 2c$,存在动点 $P$ 满足 $|PF_1| + |PF_2| = 2a(2a>2c)$,则 P 的轨迹曲线为椭圆。

$2a = 2c$ 时 P 的轨迹为线段,也就是线段 $F_1F_2$; $2a < 2c$ 时 P 不存在。

  • $F_1, F_2$ 称为焦点。

折腾小记 - Service Worker

发布于 # blog # share

0 序

退役了,文化课了。于是每天写代码的时间连 20min 都没有了。

但我还是想写!那就整点乐子吧

1 Service Worker

The service worker is designed first to redress this balance by providing a Web Worker context, which can be started by a runtime when navigations are about to occur. This event-driven worker is registered against an origin and a path (or pattern), meaning it can be consulted when navigations occur to that location. Events that correspond to network requests are dispatched to the worker and the responses generated by the worker may override default network stack behavior. This puts the service worker, conceptually, between the network and a document renderer, allowing the service worker to provide content for documents, even while offline.

https://www.w3.org/TR/service-workers/#motivations

翻译一下就是

Service Worker 提供了一种在请求前进行处理的 Web Worker。开发者可以通过此技术来拦截并修改每一个请求,并通过访问缓存等方式实现在网络较差甚至离线情况下对网页的访问。

NOI 2022 游记 SP - 上海之旅

发布于 # algorithm # share

漫天闪烁的繁星 伴着我独自前行 越过光年的距离 照亮我的眼睛

化作繁星

0 启程

上海,中国对外开放的中心。

这场上海之旅来之不易。伴随着紧急疏散的要求,我和抹茶和 dyf_dyf 一同打的前往花桥,乘坐上海轨道交通 11 号线,前往上海。

NOI 2022 游记

发布于 # algorithm # share

0 序

今年是最感到时间如白马过隙的。每天窝在机房看自己不会的东西,每天都在想明天要学什么新的东西,然后日子就一天天的过去了。

想学的东西还没有学完,CCF 要求所有选手先到昆山的通告倒是先来了。不管如何,参赛为重,只得踏上前往昆山的旅途。

1 愉快的七天

因为雅礼人的高铁经过温州 & 他们订票的时候也没带上我,我就自己整了个别的列车。

在 08 月 13 日到达的昆山。

一到昆山就跑去找 dyf_dyf 和 Lucky_Yukikaze 聊天。

整理一下情况是几乎整个新疆省队都在一起(除了 Arachv)。接下来的日子就很简单了,蜜雪冰城,Among us,写模版,聊天。

<figure>

<figure>

<figcaption>

0817 吃的华莱士

</figcaption>

</figure>

</figure>

简单欢乐的日子永远过的很快,眨眼见就到了 20 号。

Codeforces Round 1699 解题报告

发布于 # algorithm

考试链接: https://codeforces.com/contest/1699

考试的时候 30min 写完 ABC 发现 D 没几个人就摸了。考完看了眼 E 发现一眼切。最后竟然上分了,我大受震撼。

A The Third Three Number Problem

求能否找到任意三个数字 $a,b,c$ 使得 $(a \oplus b) + (a \oplus c) + (b \oplus c) = n$ 。 容易发现奇数根本不可能,偶数随便构造。

B Almost Ternary Matrix

给表格染色。使得对于任意一个格子,有且只有两个相邻格子和这个颜色不同。 以 2x2 为一个单位,交叉构造即可。

Woshiluo's NoteBook

「Jump up HIGH!!」